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:

SettingValue
Variable NameNODE_EXTRA_CA_CERTS
Variable ValueC:\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 (.crt or .pem)
  • This setting affects all Node.js processes started from that user session