Claude Code 1.0.xAuth / Login

Claude Code: login/network error behind proxy (self-signed cert)

Error: unable to get local issuer certificate / network request failed during login
Affected versions
1.0.x
Fixed in
Last verified
Claude Code 1.0.x

Root cause

A corporate proxy with a self-signed/MITM certificate breaks TLS verification, so the CLI can't reach the auth or API endpoints.

How to reproduce

Run `claude login` behind a corporate proxy that injects its own CA; the request fails on cert verification.

Solutions (2)

Ordered by community votes. Always check the verified version before applying.

23
#1Applies to 1.0.x

Point Node/CLI at your corporate CA bundle: set `NODE_EXTRA_CA_CERTS=/path/to/corp-ca.pem` so TLS verification passes through the proxy.

Last verified: Claude Code 1.0.x · community

13
#2Applies to 1.0.x

Set HTTPS_PROXY to your proxy URL and confirm the auth/API domains are allowlisted by your network team.

Last verified: Claude Code 1.0.x · community

Source

Related errors