error: SELF_SIGNED_CERT_IN_CHAIN #2356

Closed
opened 2026-02-16 17:35:18 -05:00 by yindo · 2 comments
Owner

Originally created by @Gorvaine on GitHub (Oct 30, 2025).

Description

opencode is ignoring npm config file and/or system certs.

On execute on a corp environment with mim proxy:

INFO 2025-10-30T10:58:22 +354ms service=bun code=1 stdout=bun add v1.3.0 (b0a6feca)
stderr=Resolving dependencies
Resolved, downloaded and extracted [6]
error: SELF_SIGNED_CERT_IN_CHAIN downloading package manifest opencode-copilot-auth
done
ERROR 2025-10-30T10:58:22 +22ms service=default pkg=opencode-copilot-auth version=0.0.3 name=BunInstallFailedError message=BunInstallFailedError cause=Error: Command failed with exit code 1 stack=BunInstallFailedError: BunInstallFailedError
at (src/bun/index.ts:82:17)
at processTicksAndRejections (native:7:39) fatal
INFO 2025-10-30T10:58:22 +71ms service=bun code=1 stdout=bun add v1.3.0 (b0a6feca)
stderr=Resolving dependencies
Resolved, downloaded and extracted [6]
error: SELF_SIGNED_CERT_IN_CHAIN downloading package manifest @opencode-ai/plugin
done
ERROR 2025-10-30T10:58:22 +1ms service=acp-command promise={} reason=Command failed with exit code 1 Unhandled rejection
ERROR 2025-10-30T10:58:22 +0ms service=default e=Command failed with exit code 1 rejection

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @Gorvaine on GitHub (Oct 30, 2025). ### Description opencode is ignoring npm config file and/or system certs. On execute on a corp environment with mim proxy: INFO 2025-10-30T10:58:22 +354ms service=bun code=1 stdout=bun add v1.3.0 (b0a6feca) stderr=Resolving dependencies Resolved, downloaded and extracted [6] error: SELF_SIGNED_CERT_IN_CHAIN downloading package manifest opencode-copilot-auth done ERROR 2025-10-30T10:58:22 +22ms service=default pkg=opencode-copilot-auth version=0.0.3 name=BunInstallFailedError message=BunInstallFailedError cause=Error: Command failed with exit code 1 stack=BunInstallFailedError: BunInstallFailedError at <anonymous> (src/bun/index.ts:82:17) at processTicksAndRejections (native:7:39) fatal INFO 2025-10-30T10:58:22 +71ms service=bun code=1 stdout=bun add v1.3.0 (b0a6feca) stderr=Resolving dependencies Resolved, downloaded and extracted [6] error: SELF_SIGNED_CERT_IN_CHAIN downloading package manifest @opencode-ai/plugin done ERROR 2025-10-30T10:58:22 +1ms service=acp-command promise={} reason=Command failed with exit code 1 Unhandled rejection ERROR 2025-10-30T10:58:22 +0ms service=default e=Command failed with exit code 1 rejection ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:35:18 -05:00
yindo closed this issue 2026-02-16 17:35:18 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3130: SSL_CERT_FILE env not observed since v0.15.0 - This issue describes the same "SELF_SIGNED_CERT_IN_CHAIN" error in corporate environments with proxy/DPI setups and discusses SSL certificate handling problems

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 30, 2025): This issue might be a duplicate of existing issues. Please check: - #3130: SSL_CERT_FILE env not observed since v0.15.0 - This issue describes the same "SELF_SIGNED_CERT_IN_CHAIN" error in corporate environments with proxy/DPI setups and discusses SSL certificate handling problems Feel free to ignore if none of these address your specific case.
Author
Owner

@Gorvaine commented on GitHub (Oct 31, 2025):

yeah, it's the same. Clossing as dupe.

@Gorvaine commented on GitHub (Oct 31, 2025): yeah, it's the same. Clossing as dupe.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2356