Skip to content

Unable to connect to the first certificate #40314

Closed as not planned
Closed as not planned

Description

@papakojo16

Description

Whenever I try to ask for something using opencode it flags saying unable to connect to the first certificate, I am using a MTN Broadband

Plugins

No response

OpenCode version

1.18.11

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Command Prompt

Activity

  1. github-actions commented on Aug 3, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • Steps to reproduce are missing — please describe exactly what you did that triggered the error
    • OpenCode version is missing — run opencode --version and include the output
    • Operating System is missing — please specify your OS and version
    • Terminal is missing — please specify which terminal you are using
    • The description lacks enough detail to diagnose the problem (e.g., which provider/model are you using, exact error message text)

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. added
    needs:complianceThis means the issue will auto-close after 2 hours.
    and removed
    needs:complianceThis means the issue will auto-close after 2 hours.
    on Aug 3, 2026
  3. github-actions commented on Aug 3, 2026

    @github-actions
    Contributor

    Thank you for updating the issue! It now has the key information needed (description, OS, terminal, and version). We appreciate you taking the time to fill this out.

  4. myacoub91 commented on Aug 3, 2026

    @myacoub91

    @papakojo16, I had the same issue a couple of days ago, I am using mac here are the steps I followed to get it solved
    The root cause was DNS filtering by Whalebone on my network. My router DNS was resolving opencode.ai to a private sinkhole IP (10.X.X.X) and serving a fake certificate issued by Whalebone Sinkhole CA instead of the real certificate.

    Fix:

    Changed my Mac DNS settings from the router DNS (192.168.0.1) to Cloudflare DNS (1.1.1.1 / 1.0.0.1)
    Flushed the DNS cache
    Verified that opencode.ai now resolves to the correct Cloudflare IPs and uses a valid Google Trust Services certificate

    After the DNS change, both HTTPS access and the OpenCode CLI worked normally.

  5. papakojo16 commented on Aug 3, 2026

    @papakojo16
    Author
  6. github-actions commented on Oct 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions