Skip to content

fix(claude): trust only the CA store bundled with Claude Code - #284

Merged
furedea merged 1 commit into
mainfrom
fix/claude-bundled-cert-store
Oct 22, 2026
Merged

furedea merged 1 commit into
mainfrom
fix/claude-bundled-cert-store

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

概要

switch と herdr の再起動で SSL_CERT_FILE などが入った新しいシェルでは,Claude Code の /login が UNABLE_TO_GET_ISSUER_CERT_LOCALLY で失敗した.既定の CLAUDE_CODE_CERT_STORE=bundled,system のうち OS 側の読み込みで失敗しており,CLAUDE_CODE_CERT_STORE=bundled ではログインできた.Claude Code 2.1.306 の内蔵 CA には侵害された eMudhra の root がないため,内蔵だけを使う.

変更前 変更後
CLAUDE_CODE_CERT_STORE 未設定(bundled,system) bundled
新しいシェルでの /login 証明書エラーで失敗 成功(手元で確認)

受け入れ条件

  • CLAUDE_CODE_CERT_STORE=bundled claude で /login が成功する
  • nix flake check が通る
  • switch 後,環境変数を付けずに起動した Claude Code でログインと API 呼び出しができる
補足
  • CLAUDE_CODE_CERT_STORE は settings の専用キーがなく,env ブロックで設定する(公式ドキュメント「Enterprise network configuration」).
  • 内蔵だけにすると,OS の証明書ストアにだけ入れた社内 CA(TLS を復号するプロキシなど)は使えない.今の環境にはない.
  • Claude Code 2.1.302 以前の内蔵 CA は侵害された root を含むため,この設定は 2.1.306 以上(build(nix): update llm-agents for Claude Code 2.1.306 #281)を前提とする.

🤖 Generated with Claude Code

With the OS store also read, OAuth login failed with
UNABLE_TO_GET_ISSUER_CERT_LOCALLY in shells that carry the new SSL_CERT_FILE;
the bundled store alone logs in, and since 2.1.306 it no longer holds the
roots behind the compromised eMudhra intermediates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@furedea
furedea merged commit 605c9ef into main Oct 22, 2026
11 checks passed
@furedea
furedea deleted the fix/claude-bundled-cert-store branch October 22, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant