[BUG] API Error: Unable to connect to API: Self-signed certificate detected.
Resolved 💬 2 comments Opened Jul 5, 2026 by xuanswe Closed Jul 6, 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?
<img width="778" height="105" alt="Image" src="https://github.com/user-attachments/assets/27e57778-0127-4c02-85c4-4f43652c17d8" />
API Error: Unable to connect to API: Self-signed certificate detected. Check your proxy or corporate SSL certificates
It suddenly fails. Nothing changes in my system. Not under proxy, normal home internet.
What Should Happen?
Should work without error.
Error Messages/Logs
`API Error: Unable to connect to API: Self-signed certificate detected. Check your proxy or corporate SSL certificates`
Steps to Reproduce
Just sent hello prompt in Claude Code CLI.
Claude Model
Not sure / Multiple models
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Claude Code v2.1.201
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗