You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linux certificate-chain check passes an OpenSSL purpose that doesn't exist (codesigning) #307
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 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
Use -purpose codesign, the name OpenSSL 3.2 introduced.
On OpenSSL before 3.2, which has no code-signing purpose, verify the chain without -purpose, and check the leaf certificate's extended key usage for codeSigning separately.
Activity