Skip to content

error: SELF_SIGNED_CERT_IN_CHAIN #3566

Closed as duplicate
Closed as duplicate

Description

@Gorvaine

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

Activity

  1. github-actions commented on Oct 30, 2025

    @github-actions
    Contributor

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

    • SSL_CERT_FILE env not observed since v0.15.0 #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.

  2. Gorvaine commented on Oct 31, 2025

    @Gorvaine
    Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions