VS Code SSL Decrypt Root CA Setup
vscode ssl windows development
Set Certificate Path (Outbound Firewall Root CA)
Configure Node.js to trust your corporate root CA for SSL inspection.
Environment Variable Setup
Go to Edit Environment Variables for your Account and add a user variable:
| Setting | Value |
|---|---|
| Variable Name | NODE_EXTRA_CA_CERTS |
| Variable Value | C:\Users\<username>\path\to\your\root-ca.crt |
Example
Variable: NODE_EXTRA_CA_CERTS
Value: C:\Users\lorincm\OneDrive - Sutter Health\Documents\Certs\cert_ob-fw-ca-2.crt
Notes
- Restart VS Code after setting the environment variable
- The certificate must be in PEM format (
.crtor.pem) - This setting affects all Node.js processes started from that user session