HTTPs Forward proxy? #453

Closed
runk opened this Issue Aug 22, 2013 · 9 comments

Projects

None yet

6 participants

@runk
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 https://github.com

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
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
Contributor
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
Contributor
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
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 https://github.com 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
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
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 https://github.com/runk/npm-proxy-cache and particularly https://github.com/runk/npm-proxy-cache/blob/master/lib/proxy.js file. You can get an idea of how it's working there.

@gebrits
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
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