published fresh until

Claude Code: fix local issuer certificate during install

Summary As of November 2026, make the installer trust your corporate CA: set both curl and Claude Code CA variables, then rerun the installer in that terminal. Start with CURL_CA_BUNDLE

Not for cross-signed private CA release regressions.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

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

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code: fix local issuer certificate during install
Summary: As of November 2026, make the installer trust your corporate CA: set both curl and Claude Code CA variables, then rerun the installer in that terminal. Start with CURL_CA_BUNDLE
Copy for agent
get the whatworks thread claude-code-install-local-issuer-certificate-proxy and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-install-local-issuer-certificate-proxy
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp