Hi, I'm trying to set up a standard SSL proxy with MITM for some research work. Say, I'm trying to create a MITM proxy for *.github.com
I've created the local CA as in the example and I see the sockets created in /tmp as per the example ssl proxy. However, I cannot get it to serve data as intended.
echo $http_proxy
http://localhost:9000
echo $HTTPS_PROXY
https://localhost:9000
export HTTPS_PROXY=http://localhost:9000
curl https://api.github.com/users/smsohan/repos
curl: (56) Proxy CONNECT aborted
Here's my code, see the transSslPort config is set to undefined.
var myProxy = proxy.createProxyServer({
sslCerts: sslCerts,
sslSockDir: '/tmp',
port: 9000,
// transSslPort: 9001,
via: 'my test proxy/1.1' // use false to turn off via
});