tiny http to https proxy

Looking for some tiny cross platform solution that would proxy http request to a https server. I have a small embedded system that has a really old solution which underlying uses wget which is incapable of using https directly 🙁

So my only solution is to have somekind of proxy deamon that would point to https server, while local solution would point to http://127.0.0.1:xxxx

Anything like this exists ? But must be low footprint and crosscompile able in c.

Thank you!