Make the environment variabe
NODE_EXTRA_CA_CERTS available to VS Code extensions.
This extension will enable the environment variable
NODE_EXTRA_CA_CERTS for all VS Code extensions. So that all extensions can use the certificates defined in this environment variable.
tls.createSecureContext function with a custom function that load all certs from a file defined in the environment variable to the tls context.
There is no platform dependency for this extension. It will work on all platforms.
The idea is that you might have done the setup already in case you are a NodeJS developer.
- Install from VSCode Marketplace
- Or open VSCode, hit
Ctrl+Shift+X (Extensions pane), search for
node-extra-ca-certs-vscode and press
Set the environment variable
NODE_EXTRA_CA_CERTS to the path of the file containing the certificates.
After installing, a restart is required for the changes to take effect.