microsoft / node-request-light

A light weight nodejs request library with proxy support. Intended to be used by VSCode extensions
MIT License
29 stars 21 forks source link

Does this work with `NODE_EXTRA_CA_CERTS`? #27

Open tillig opened 1 year ago

tillig commented 1 year ago

We have some pretty awesome security software that does this ~man-in-the-middle-attack~ TLS interception where it decrypts and re-encrypts all TLS traffic.

For Node apps, I've been able to add the environment variable NODE_EXTRA_CA_CERTS and point it to the security software certificate.

It doesn't seem that this obeys that construct, or perhaps the environment in VS Code extensions isn't seeing that value propagated down? I'm encountering issues while trying to use the Azure Pipelines Language Server that uses this library. It pretty consistently issues a message like: "Error: Unable to get local issuer certificate" and that generally points at this MitM thing.

cwarden commented 6 months ago

Upgrading https-proxy-agent might fix it.