http-party / node-http-proxy

A full-featured http proxy for node.js
https://github.com/http-party/node-http-proxy
Other
13.88k stars 1.97k forks source link

Proxy HTTPS traffic without re-signing #609

Open Kantaris opened 10 years ago

Kantaris commented 10 years ago

I'm building a proxy to be run on my local machine that will log all domains accessed. Kind of the same way Fiddler works, but my program is more simple, I don't need to look at the data or decrypt anything.

I got this working fine for HTTP but for HTTPS it resigns the traffic with the self-signed certificate provided. This results in that the browser displays a warning. The same thing doesn't happen in fiddler unless you choose to decrypt HTTPS traffic.

So my question is: How do I proxy HTTPS traffic so that it is completely transparent for the web browser user?

Rush commented 10 years ago

HTTPS traffic will look like garbage to any monitoring application so you won't be able to distinguish domains without decrypting the traffic (requested domain is sent in HTTP headers). Your options:

Kantaris commented 10 years ago

Proxy HTTPS to HTTPS seems like the way to go. I want everything to work exactly like if the proxy wasn't there