Closed
Description
We recently added a new option ignoreProxyCertificate
. We should add tests covering it.
How to do it (roughly):
- Run a plain Node.js HTTP server that would just return
Hello world
. - Use e.g. https://www.npmjs.com/package/local-ssl-proxy to wrap the server with a self-signed SSL certificate.
- Run a
proxy-chain
server that would point to the HTTPS endpoint created in 2. - Send a normal request via the
proxy-chain
proxy. - If
ignoreProxyCertificate
is set totrue
, you should getHello world
, otherwise you'll get a SSL error about being unable to verify the leaf signature.