I have the following situation: 2 nodes, one is the client and the other is the HTTPS server.
Client (:<brwsr-port>) <=============> Web server (:443)
I installed Fiddler on the server so that I now have Fiddler on my server on port 8888.
The situation that I would like to achieve is as follows:
|Client (:<brwsr-port>)| <===> |Fiddler (:8888) <===> Web server (:443)| |-Me-------------------| |-Server--------------------------------|
On my computer, I want to contact Fiddler, which redirects traffic to a web server. However, the web server uses HTTPS.
On the server, I configured Fiddler to handle HTTPS sessions and decrypted them. I was asked to install a fake CA certificate on the Fiddler server, and I did it! I also added a script suggested by the Fiddler wiki to redirect HTTPS traffic
// HTTPS redirect ----------------------- FiddlerObject.log("Connect received..."); if (oSession.HTTPMethodIs("CONNECT") && (oSession.PathAndQuery == "<server-addr>:8888")) { oSession.PathAndQuery = "<server-addr>:443"; } // --------------------------------------
However, when I try https://myserver:8888/index.html , I fail!
Failure Details
When using Fiddler on the client, I see that the CONNECT request is starting, but the session fails because the response is HTTP error 502. It looks like no one is listening on port 8888. Actually, if I stop Fiddler on the server I get this same situation: 502 bad gateways.
Please note that when you try https://myserver/index.html and https://myserver:443/index.html everything works!
Question
What am I doing wrong?
Is it possible that ...?
I thought that since TLS / SSL might be running on port 443, I would need to listen to Fiddler and move my web server to another port, such as 444 (maybe I should set the IIS https binding on port 444). Is it correct?