Skip to content

Linux certificate-chain check passes an OpenSSL purpose that doesn't exist (codesigning) #307

Open

Description

@jscott3201

Version: @anthropic-ai/mcpb 2.1.2 (the latest on npm as of 2026-11-03).

This is a third verification problem beside #277 / #260 (node-forge's PKCS#7 verify() is unimplemented) and #278 (the signature block isn't declared as the zip comment). It is latent today, since #277 makes verification fail before the chain check runs. Once #277 is fixed, it would still make mcpb verify report every bundle as unsigned on Linux.

Cause

verifyCertificateChain in dist/node/sign.js runs, on Linux:

openssl verify -purpose codesigning -CApath /etc/ssl/certs chain.pem

OpenSSL has no purpose named codesigning, so openssl verify fails with verify: Invalid purpose codesigning, and the chain is reported untrusted.

OpenSSL -purpose codesigning -purpose codesign
3.0.22 (Debian bookworm) Invalid purpose codesigning not available
3.5.7 (Debian trixie) Invalid purpose codesigning OK

These were run directly against an RSA certificate with extended key usage codeSigning that was added to the system trust store. Ubuntu 24.04, the GitHub Actions image, ships OpenSSL 3.0.

Suggested fix

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions