eduardsui / tlse

Single C file TLS 1.2/1.3 implementation, using tomcrypt as crypto library
Other
535 stars 87 forks source link

Is its possible to make HTTPS Proxy using TLSe? #79

Closed GuckTubeYT closed 1 year ago

GuckTubeYT commented 1 year ago

Is it possible to make HTTPS Proxy using TLSe? if its possible, do you have example code HTTPS Proxy

Thanks

eduardsui commented 1 year ago

Hello,

Yes, it should be fairly easy. You will need to write a basic https server and a http(s) client. Requests will be then processed by the proxy and forwarded with optional header rewrite.

I don't have example code for this, it's not a trivial task, but it shouldn't be very difficult either.

E.

GuckTubeYT commented 1 year ago

Hello,

Yes, it should be fairly easy. You will need to write a basic https server and a http(s) client. Requests will be then processed by the proxy and forwarded with optional header rewrite.

I don't have example code for this, it's not a trivial task, but it shouldn't be very difficult either.

E.

Oh, thanks for the information, so, i can use your code example like tlssimpleserver.c?

eduardsui commented 1 year ago

It's public domain, so ... of course. But keep in mind that tlssimpleserver.c is just a minimalistic example. It doesn't parse HTTP headers, it doesn't implement any useful features for a real HTTP server.