I've build a proxy with some logic on request headers.
I use sockets. Before even any connect occurs, inside my proxy I parse headers, add authentification and forward the request to target host.
And now I've stumbled upon following issues:
- I have to relay https requests
- I don't need any body manipulations, I just need to modify headers the same way, forward CONNECT to target, receive an answer and return to source socket.
Questions:
Do I need CA on the proxy side? Do I need to use SSlStream to forward and receive request?
If so, what could be the algorithm?