[BUG] Failures with `SELF_SIGNED_CERT_IN_CHAIN` errors
Resolved 💬 5 comments Opened Sep 23, 2025 by genu Closed Jan 9, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
API error is thrown:
API Error (Connection error.) · Retrying in 4 seconds… (attempt 4/10)
⎿ Error (self signed certificate in certificate chain) (SELF_SIGNED_CERT_IN_CHAIN)
⎿ API Error (Connection error.) · Retrying in 10 seconds… (attempt 5/10)
⎿ Error (self signed certificate in certificate chain) (SELF_SIGNED_CERT_IN_CHAIN)
⎿ API Error (Connection error.) · Retrying in 16 seconds… (attempt 6/10)
⎿ Error (self signed certificate in certificate chain) (SELF_SIGNED_CERT_IN_CHAIN)
⎿ API Error (Connection error.) · Retrying in 32 seconds… (attempt 7/10)
⎿ Error (self signed certificate in certificate chain) (SELF_SIGNED_CERT_IN_CHAIN)
⎿ API Error (Connection error.) · Retrying in 32 seconds… (attempt 8/10)
⎿ Error (self signed certificate in certificate chain) (SELF_SIGNED_CERT_IN_CHAIN)
⎿ API Error (Connection error.) · Retrying in 40 seconds… (attempt 9/10)
⎿ Error (self signed certificate in certificate chain) (SELF_SIGNED_CERT_IN_CHAIN)
There were two other issues open related to this, but they were both closed with no apparent resolution: #2903 and #3374
The recommendation in the above issues is to turn off NODE_TLS_REJECT_UNAUTHORIZED, but that is not really acceptable, as it compromises security.
What Should Happen?
It should work out of the box without having to modify TLS settings.
Error Messages/Logs
API Error (Connection error.) · Retrying in 4 seconds… (attempt 4/10)
⎿ Error (self signed certificate in certificate chain) (SELF_SIGNED_CERT_IN_CHAIN)
⎿ API Error (Connection error.) · Retrying in 10 seconds… (attempt 5/10)
⎿ Error (self signed certificate in certificate chain) (SELF_SIGNED_CERT_IN_CHAIN)
⎿ API Error (Connection error.) · Retrying in 16 seconds… (attempt 6/10)
⎿ Error (self signed certificate in certificate chain) (SELF_SIGNED_CERT_IN_CHAIN)
⎿ API Error (Connection error.) · Retrying in 32 seconds… (attempt 7/10)
⎿ Error (self signed certificate in certificate chain) (SELF_SIGNED_CERT_IN_CHAIN)
⎿ API Error (Connection error.) · Retrying in 32 seconds… (attempt 8/10)
⎿ Error (self signed certificate in certificate chain) (SELF_SIGNED_CERT_IN_CHAIN)
⎿ API Error (Connection error.) · Retrying in 40 seconds… (attempt 9/10)
⎿ Error (self signed certificate in certificate chain) (SELF_SIGNED_CERT_IN_CHAIN)
Steps to Reproduce
- Install in osx
- Attempt to use
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
1.0.120 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗