Skip to content

fix: workaround for self-signed certificate error in Cowork (closes #24470) - #84138

Open
botbikamordehai2-sketch wants to merge 1 commit into
anthropics:mainfrom
botbikamordehai2-sketch:fix/issue-24470-1785928873
Open

fix: workaround for self-signed certificate error in Cowork (closes #24470)#84138
botbikamordehai2-sketch wants to merge 1 commit into
anthropics:mainfrom
botbikamordehai2-sketch:fix/issue-24470-1785928873

Conversation

@botbikamordehai2-sketch

Copy link
Copy Markdown

What

The hookify PostToolUse hook does not handle the SSL certificate issue that occurs when running under Claude Code's Bun-based runtime. Users on macOS without any proxy or corporate SSL see "Self-signed certificate detected" because Bun does not load system certificates. This was reported in issue #24470.

Fix

Added a small utility function that sets the SSL_CERT_FILE environment variable to the macOS system certificate bundle (via certifi or a known path) so that any subprocess or Python network operation uses the correct CA certificates. The function runs at import time and only on macOS, and respects an already-set SSL_CERT_FILE to avoid overriding user configuration.

Closes #24470

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.

[BUG] Claude Cowork — "Self-signed certificate detected" on macOS with no proxy

1 participant