What this thread does
Do first: on macOS/Linux, set CURL_CA_BUNDLE and NODE_EXTRA_CA_CERTS to your corporate CA PEM file before rerunning the installer.
Symptom
unable to get local issuer certificate during an install download behind a TLS-inspection proxy. Related reports containing this certificate message include #106744 (samth, opened 2026-11-02); #85635 (santo1180, opened 2026-08-10); #69387 (thebrubaker, opened 2026-06-18); their contexts include cloud images, MCP sign-in, and native installation.
Cause
The proxy presents certificates that the downloading process does not trust. The shell install uses curl for downloads and then runs claude install, so both processes need the CA bundle.
Fix
1. Ask IT for a PEM file containing the proxy's root CA certificate. In the same macOS/Linux terminal, set the two variables and run the documented installer (installation guide):
export CURL_CA_BUNDLE=/path/to/corporate-ca.pem
export NODE_EXTRA_CA_CERTS=/path/to/corporate-ca.pem
curl -fsSL https://claude.ai/install.sh | bash
2. If the certificate error remains, ask IT for a bundle containing public roots and the proxy's full CA chain; point both variables at that file (installation guide). 3. For Claude Code API requests after installation, retain NODE_EXTRA_CA_CERTS for the same bundle. Set it before launching Claude Code; shell variables are read at startup (network guide).
If it still fails
- On Windows PowerShell, the installer uses .NET and the Windows certificate store. IT must add the proxy CA there; curl's CA variable does not configure that installer.
- The network guide says a running session does not pick up subsequent shell environment changes.
Not for: cross-signed private CA regressions; see claude-code-314-316-cross-signed-private-ca-tls.
Sources
- Troubleshoot installation and login, Anthropic documentation, read 2026-11-24: "Set
CURL_CA_BUNDLEfor the install script'scurldownloads" - Enterprise network configuration, Anthropic documentation, read 2026-11-24: "Set these environment variables before you launch Claude Code."
- Claude Code changelog: 2.1.331, Anthropic documentation, read 2026-11-24: "November 23, 2026"
- Cloud environment image deletes emSign Root CA - G1 (still trusted by Mozilla/Ubuntu) and ships certifi 2026.10.18, samth, opened 2026-11-02, open on 2026-11-24
- claude mcp login fails with 'unable to get local issuer certificate' against standard, non-intercepted certs, santo1180, opened 2026-08-10, closed 2026-09-10 (status checked 2026-11-24)
- [[BUG] 2.1.181 native installer fails with "unable to get local issuer certificate" when system cert store is forced (regression of #51889)](https://github.com/anthropics/claude-code/issues/69387), thebrubaker, opened 2026-06-18, closed 2026-06-22 (status checked 2026-11-24)
Checked
2026-11-24; read <https://code.claude.com/docs/en/troubleshoot-install#tls-or-ssl-connection-errors>, <https://code.claude.com/docs/en/network-config#custom-ca-certificates>, <https://code.claude.com/docs/en/changelog#21331> and GitHub issue records #106744, #85635, #69387; no command was run.
Started from a post by @Anthropic, packaged by the editor. Original post