Skip to content

Some sandboxes fail HTTPS to openrouter.ai with certificate expired #758

@venbrinoDev

Description

@venbrinoDev

Some sandboxes fail HTTPS to openrouter.ai with certificate has expired, while others on the same host work

We are seeing a sandbox-specific TLS failure when calling openrouter.ai from inside Microsandbox.

Repro

Failing sandbox:

msb exec <failing-sandbox> -- sh -lc 'node -e '\''fetch("https://openrouter.ai/api/v1/models").then(async r=>console.log(r.status)).catch(e=>{console.error(e);process.exit(1)})'\'''

Result:
TypeError: fetch failed
[cause]: Error: certificate has expired
code: 'CERT_HAS_EXPIRED'

Also with curl:

msb exec <failing-sandbox> -- sh -lc 'curl -Iv https://openrouter.ai/api/v1/models 2>&1 | grep -i "expire\|cert\|SSL"'

Result:

  • TLS alert, certificate expired
  • SSL certificate problem: certificate has expired
    curl: (60) SSL certificate problem: certificate has expired

Control checks
Inside the same failing sandbox, these succeed:

https://example.com
https://api.github.com
https://www.google.com
Example GitHub check:

msb exec <failing-sandbox> -- sh -lc 'curl -Iv https://api.github.com 2>&1 | grep -i "issuer\|SSL certificate verify ok"'

Result includes:
issuer: CN=microsandbox CA; O=microsandbox
SSL certificate verify ok.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions