HTTPs Forward proxy? #453

runk opened this Issue Aug 22, 2013 · 9 comments


None yet

6 participants

runk commented Aug 22, 2013

Is it possible to use the module in https forward mode? I've tried different examples, though without any luck. It works fine for me in reverse proxy mode.

Basically when I try to do:

curl -x localhost:8080

the proxy doesn't respond anything.

Further, is it possible to intercept data in https proxy mode? Like web debugging proxies do, eg. Charles.

kalebdf commented Nov 19, 2013

I'd be interested in a solution to this: HTTP localhost --> HTTPS remote service.

On a possibly related note, I couldn't get the vows tests in npm test to pass on my Mac (npm 1.2.18 and node 0.10.5)

cronopio commented Dec 9, 2013

There is an example right now in the better-examples branch feel free to check it out and close this issue. Also if you got further questions the discuss is here #520

yawnt commented Dec 18, 2013

@kalebdf please check out the branch caronte in this repo, master is not compatible with 0.10.x

@runk runk closed this Dec 19, 2013
damiga commented Dec 24, 2013

better-examples is not accessible anymore.
I'm looking to setup an HTTPS forward proxy as well, like the example: curl -x localhost:8080 can you please send me an updated link or demo? also, for production, should I use caronte or the regular version?

Any step by step on how to generate the certificate and install it on the client browser (enterprise use case) so that the clients will not get the typical SSL warning?

damiga commented Jan 6, 2014

Have you been able to make it work in SSL man in the middle mode? (forward https to https)?

runk commented Jan 6, 2014

Nope. I needed this functionality to create a caching proxy for npm registry, but was unable to get it working. Eventually I did everything myself :) You can get a look at repo and particularly file. You can get an idea of how it's working there.

gebrits commented May 12, 2016

hi @runk. Looked at your code but quick question: do I understand correctly that I need an external proxy server running (as identified by mitmSocketPath) ? I hoped this was a self-containing https forward proxy. Any help much appreciated

runk commented May 13, 2016

@gebrits nope, it's just an option to set a path where internal https server keeps its spocket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment