Skip to content
AI Dev Toolkit.
Esc
  • Loading…

Claude Code · Certificates and network

curl: (60) SSL certificate problem: unable to get local issuer certificate

Claude Code install fails with curl (60), curl (35), schannel or “Could not create SSL/TLS secure channel”? Safe fixes for macOS, Linux and Windows.

Message

The exact error

Claude Code
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.

Also appears as:

TLS handshake failure (curl)
curl: (35) TLS connect error
Windows curl (Schannel)
schannel: next InitializeSecurityContext failed
Windows PowerShell
Could not create SSL/TLS secure channel
Windows PowerShell, untrusted certificate
Could not establish trust relationship for the SSL/TLS secure channel
Windows, revocation check blocked
CRYPT_E_NO_REVOCATION_CHECK (0x80092012) or CRYPT_E_REVOCATION_OFFLINE (0x80092013)

Meaning

What does curl (60) mean during the Claude Code install?

This one comes from curl, not Claude Code: the install command downloads the installer over HTTPS, and curl couldn’t verify the server’s certificate. It’s the same root cause as the in-app certificate errors (a proxy re-signing traffic with a root curl doesn’t trust) but it happens before Claude Code is even installed, so the fix is for curl. The related install errors on this page, such as curl: (35) and PowerShell’s “secure channel” messages, mean the TLS handshake itself failed.

Causes

What causes SSL errors when installing Claude Code?

  • A corporate proxy inspecting HTTPS with a root curl doesn’t trust
  • An outdated certificate bundle on the machine
  • Windows PowerShell 5.1 not offering TLS 1.2
  • On Windows, a firewall blocking the certificate revocation lookup

Fix

How do I fix it on macOS, Linux and Windows?

  1. Give curl your company’s root certificate

    Export the proxy root as a PEM file (see the steps on the UNABLE_TO_GET_ISSUER_CERT_LOCALLY page), then:

    macOS / Linux
    curl --cacert /path/to/corp-ca.pem -fsSL https://claude.ai/install.sh | bash
  2. On Windows, use an installer that reads the Windows store

    The PowerShell installer downloads through .NET, which uses the Windows certificate store, so a company root that IT installed is trusted automatically. WinGet avoids curl entirely.

    PowerShell
    irm https://claude.ai/install.ps1 | iex
    Or WinGet
    winget install Anthropic.ClaudeCode
  3. In Windows PowerShell 5.1, enable TLS 1.2

    For “Could not create SSL/TLS secure channel”, turn on TLS 1.2 in the same window, then run the installer there. If it still fails behind a proxy, ask IT to add the proxy’s root to the Windows certificate store.

    Windows PowerShell
    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
    irm https://claude.ai/install.ps1 | iex
  4. On Windows, work around a blocked revocation check

    CRYPT_E_NO_REVOCATION_CHECK and CRYPT_E_REVOCATION_OFFLINE mean curl reached the server but your network blocks the revocation lookup. From Command Prompt, rerun the download with --ssl-revoke-best-effort: it still rejects a certificate known to be revoked and only tolerates an unreachable revocation server. The install script applies the same fallback to its own downloads. The PowerShell installer and WinGet avoid curl’s check entirely.

    Command Prompt
    curl --ssl-revoke-best-effort -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
  5. Then set up Claude Code itself

    After installing, Claude Code makes its own HTTPS connections. If you had to give curl a certificate, give Claude Code the same one with NODE_EXTRA_CA_CERTS before your first run; the UNABLE_TO_GET_ISSUER_CERT_LOCALLY page covers that step.

  6. Update the certificate bundle

    For a lasting fix on Linux, add your company root to the system store (copy it to /usr/local/share/ca-certificates/ with a .crt name and run sudo update-ca-certificates), so curl and Claude Code both trust it. On macOS, the system curl uses the Keychain, and macOS updates bring new root certificates.

    Debian / Ubuntu
    sudo apt-get update && sudo apt-get install ca-certificates

Don’t do this

  • Don’t add -k or --insecure to the install command. You would be running a script downloaded without checking it came from Anthropic.

Explained

What about curl (35) and “secure channel” errors?

curl: (35) TLS connect error, schannel: next InitializeSecurityContext failed and PowerShell’s “Could not create SSL/TLS secure channel” mean the TLS handshake failed before any certificate was accepted. Anthropic’s fixes are, in order: update your CA certificates, enable TLS 1.2 in Windows PowerShell 5.1, and check for a proxy or firewall doing TLS inspection. Trying once on a direct connection, such as a phone hotspot, quickly shows whether the proxy is the cause.

If the install reports success but claude isn’t found, see command not found: claude. If the download returns a web page instead of the script, see install script returns HTML, and for the Windows shell requirement after installing, Git or PowerShell.

FAQ

Questions people ask

What do CRYPT_E_NO_REVOCATION_CHECK and CRYPT_E_REVOCATION_OFFLINE mean?

On Windows, curl reached the server but your network blocked the certificate revocation lookup, which is common behind corporate firewalls. Anthropic’s install guide says to rerun the install.cmd download from Command Prompt with --ssl-revoke-best-effort added. That still rejects a certificate known to be revoked; it only tolerates an unreachable revocation server.

How do I fix “Could not create SSL/TLS secure channel” in PowerShell?

Windows PowerShell 5.1 may not offer TLS 1.2. Run [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 in the same window, then irm https://claude.ai/install.ps1 | iex. If it still fails behind a proxy, ask IT to add the proxy’s root to the Windows certificate store, which the PowerShell installer uses.

Is it safe to install Claude Code with curl -k?

No. -k and --insecure turn off certificate checking, so you would run a script without knowing it came from Anthropic. Give curl your company’s root with --cacert instead, or use the PowerShell installer or WinGet on Windows, which trust the Windows certificate store.

Related

Search all Claude Code errors

Keep exploring