Corporate Network Doctor
Fixes unable to get local issuer certificate and self-signed certificate in certificate chain on company networks that inspect TLS (Zscaler, Netskope, Cisco Umbrella, Palo Alto Networks, Fortinet and others), for every developer tool at once, from VS Code.
On these networks a proxy re-signs every HTTPS connection with the company's own root certificate. Your browser trusts it because IT installed it in the operating system, but npm, pip, git, Node, Python, Java, Docker and the cloud CLIs each ship their own list of trusted roots, and each needs to be told about the corporate root in its own way. This extension does that for all of them, shows you exactly what it changes, and lets you undo every change.
It never turns certificate checks off. It also finds settings that do (strict-ssl=false, http.sslVerify=false, ssl_verify: false, check_certificate = off, http.proxyStrictSSL: false) and offers to turn the checks back on.
Not affiliated with any of the vendors named here.
How it works
Open it with Network Doctor: Open Network Doctor from the Command Palette. The page has four steps.
1. TLS inspection
Connects to registry.npmjs.org, pypi.org, files.pythonhosted.org, github.com, repo.maven.apache.org, registry-1.docker.io, marketplace.visualstudio.com and login.microsoftonline.com (change the list with networkDoctor.hosts). For each one it shows whether the certificate comes from a public certificate authority or was re-signed, who signed it, and the product when the names give it away (Zscaler, Netskope, Cisco Umbrella, Palo Alto, Fortinet, Forcepoint, Symantec, Skyhigh, Sophos, Check Point, Cloudflare Gateway and others). Nothing is trusted or changed in this step.
2. Corporate root certificate
- Find it automatically: looks in the Windows certificate store, the macOS keychains or the Linux system bundle for the certificate that actually signed the inspected connections, checking signatures.
- Choose a file from IT (
.crt, .cer, .pem, PEM or DER, one certificate or a bundle). You see its name, expiry, fingerprint, and which inspected servers it covers before you confirm.
- Pick from the certificates installed on this computer.
A certificate sent by the network itself is never trusted on its own: if the corporate root is not installed on your computer, you are shown its fingerprint so you can get the real file from IT.
The extension then builds ~/.corporate-network-doctor/ca-bundle.pem: the public roots (Mozilla's list, as shipped with Node), the certificates in your operating system store, and the corporate root. Many tools replace their whole trust list with the file you give them, so pointing them at the corporate certificate alone would break every public site; the combined bundle avoids that.
For each tool you see whether it is installed, what needs to change, and the result of a real test. Preview opens the exact change as a diff (files) or command lines. Apply asks for confirmation, applies it, and tests the tool. Undo puts back the values from before. Test runs the tool for real and tells a certificate problem apart from a network or proxy problem.
| Tool |
What is changed |
Test |
| Operating system store |
Shown as commands to run yourself (they need administrator rights) |
— |
| VS Code |
Only settings that turn trust off (http.systemCertificates: false, http.proxyStrictSSL: false) |
HTTPS request from the extension host |
| Node.js |
NODE_EXTRA_CA_CERTS |
https.get to registry.npmjs.org |
| npm, pnpm |
cafile in ~/.npmrc; removes strict-ssl=false |
npm ping, pnpm view |
| Yarn |
cafile in ~/.yarnrc (Yarn 1) or httpsCaFilePath in ~/.yarnrc.yml (Yarn 2+) |
yarn info / yarn npm info |
| Python |
REQUESTS_CA_BUNDLE, SSL_CERT_FILE |
requests and urllib to pypi.org |
| pip |
cert in pip.conf / pip.ini |
pip download --no-deps six |
| uv |
SSL_CERT_FILE |
uv pip compile |
| Poetry |
REQUESTS_CA_BUNDLE |
poetry self show --outdated |
| conda |
ssl_verify in ~/.condarc |
conda's own HTTP session |
| Git |
git config --global http.sslCAInfo; removes http.sslVerify=false |
git ls-remote |
| Java (Maven, Gradle) |
A trust store built from the JDK's cacerts plus the corporate root, and JAVA_TOOL_OPTIONS. The JDK itself is not changed |
A small HttpsURLConnection program |
| Docker |
Shown as commands: the Docker daemon trusts the operating system store |
docker search |
| Azure CLI |
REQUESTS_CA_BUNDLE |
az extension list-available |
| AWS CLI |
AWS_CA_BUNDLE |
Unsigned request to a public S3 bucket |
| Google Cloud CLI |
gcloud config set core/custom_ca_certs_file |
gcloud info --run-diagnostics |
| Databricks CLI |
SSL_CERT_FILE on Linux; the operating system store on macOS and Windows |
databricks current-user me |
| curl |
CURL_CA_BUNDLE |
curl --head |
| wget |
ca_certificate in ~/.wgetrc; removes check_certificate = off |
wget --spider |
Apply All Needed previews and applies every installed tool at once; each can still be undone on its own. When two tools need the same setting (Python and uv both use SSL_CERT_FILE), undoing one keeps it for the other.
4. Proxy
Shows every place a proxy is set (Windows, macOS or GNOME proxy settings, VS Code's environment and http.proxy, ~/.npmrc, git, pip) and whether they agree. Use One Proxy Everywhere sets HTTPS_PROXY, HTTP_PROXY and NO_PROXY (and the lower-case names curl needs on macOS and Linux), and changes tool settings that name a different proxy, with the same preview and undo. A PAC file cannot be used by command-line tools; ask IT for the proxy it points to.
Where changes go
- Environment variables, on macOS and Linux: one file,
~/.corporate-network-doctor/env.sh, and a three-line block in your shell start-up files (~/.bashrc, ~/.bash_profile, ~/.profile, ~/.zshenv, whichever you use) that sources it. fish gets ~/.config/fish/conf.d/corporate-network-doctor.fish. Undoing the last variable removes the file and the blocks again, leaving the start-up files byte for byte as they were.
- Environment variables, on Windows: your user environment variables (
HKCU\Environment), set with .NET so new programs see them.
- VS Code terminals get the variables immediately. Restart VS Code so that other extensions pick up
NODE_EXTRA_CA_CERTS.
- Config files (
~/.npmrc, pip.conf, ~/.condarc, ~/.wgetrc, ~/.yarnrc): only the one key is changed; comments, order and other keys stay as they are. The original of every file is copied to ~/.corporate-network-doctor/backups/ before it is changed.
~/.corporate-network-doctor/journal.json records each change with the value it replaced, so undo works after VS Code restarts. If something else changed a value since, the undo preview says so.
Steps that need administrator rights (adding the root to the operating system store, restarting the Docker daemon) are never run by the extension. They are shown with the commands to reverse them, and can be copied to a terminal.
Commands
- Network Doctor: Open Network Doctor
- Network Doctor: Check for TLS Inspection
- Network Doctor: Set Up Corporate Root Certificate
- Network Doctor: Rebuild Certificate Bundle (after IT renews the root, or the operating system store changes)
- Network Doctor: Test All Tools
- Network Doctor: Undo All Changes
- Network Doctor: Show Log
Settings
networkDoctor.hosts: servers to check for TLS inspection (host or host:port).
networkDoctor.commandTimeoutSeconds: how long one tool test may run (default 45).
Limitations
- Container images you build need the corporate root inside them for
RUN steps that download; copy ~/.corporate-network-doctor/corporate-roots.pem into the image.
- Java tools see
JAVA_TOOL_OPTIONS and print Picked up JAVA_TOOL_OPTIONS when they start.
- On macOS, apps started from the Dock do not read shell start-up files; VS Code does (it reads your shell environment when it starts).
- Go programs on macOS and Windows (the Databricks CLI, Terraform, the GitHub CLI) only trust the operating system store.
License
MIT