[BUG] SSL certificate has expired not working since 2.1.190+ on mac

Open 💬 11 comments Opened Jun 26, 2026 by medalliaerlich

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?

I'm getting this error in the cli:
Unable to connect to API: SSL certificate has expired
I already set NODE_EXTRA_CA_CERTS with the correct pem and validated it.
If I install 2.1.170 it works well but then in 2.1.190+ it fails with that message, regardless of the NODE_EXTRA_CA_CERTS

Claude desktop works well
Tried with

cat ~/.claude/settings.json
{
    "theme": "dark",
    "env": {
    "NODE_EXTRA_CA_CERTS": "cert.pem"
}

Using a CASB

Using /doctor or /bug didn't not work neither

What Should Happen?

It should allow me to use the cli

Error Messages/Logs

✻ Unable to connect to API: SSL certificate has expired · Retrying in 2s · attempt 3/10

Steps to Reproduce

Open Claude cli and talk

Claude Model

_No response_

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.170

Claude Code Version

2.1.190

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗