Ignore SSL
Closed this issue · 1 comments
aemonge commented
Is there an option to ignore the SSL validation ?
I know the following based on the documentation:
new hoxy.Proxy({
reverse: 'https://example.com',
tls: {
key: fs.readFileSync(__dirname + '/my-server.key.pem'),
cert: fs.readFileSync(__dirname + '/my-server.cert.pem'),
}
})
But I don't have access (nor am able to get it) to the private key, only the public (downloaded from firefox).
Is there any work around ?
aemonge commented
I self-answered my self :P
process.env.NODE_TLS_REJECT_UNAUTHORIZED=0;