greim/hoxy

Ignore SSL

Closed this issue · 1 comments

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 ?

I self-answered my self :P

process.env.NODE_TLS_REJECT_UNAUTHORIZED=0;