Hi Eric,
I've created a chained HTTP/HTTPS proxy with fiddler. The whole system works as following:
proxy1 is deployed at client side. It encrypts the requested host and content, then pass it to proxy2 at server side. proxy2 decrypts the request, pass it to target websites, then encrypts the response and send it back to proxy1.
Everything works fine but for HTTPS. The source code and Wireshark pcap file are as following. Please kindly let me know how to get this work.
Server code
Client code
Pcap file
Regards,
Jack Wang