mutualAuthBuildCertificate
Build and sign a mutual-auth certificate identifying an agent or information system. Returns a signed certificate ready for mutual authentication handshake, signed with Ed25519 over canonical JSON.
Instructions
Build and sign a mutual-auth certificate identifying an agent or information system. Returns the signed MutualAuthCertificate object ready to carry into a handshake. The issuer's Ed25519 private key (hex) signs over the canonical (JCS) form.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Role of the subject this cert identifies | |
| subject_id | Yes | Stable subject identifier (e.g., agent DID, IS endpoint URL) | |
| subject_pubkey_hex | Yes | Ed25519 public key (hex) of the subject | |
| issuer_id | Yes | Issuer identifier | |
| issuer_role | Yes | Role of the issuer | |
| issuer_pubkey_hex | Yes | Ed25519 public key (hex) of the issuer | |
| issuer_privkey_hex | Yes | Ed25519 private key (hex) of the issuer — used to sign | |
| binding | Yes | For an agent: the APS agent_id. For an IS: the resource domain (e.g., mcp://api.bank.com) | |
| not_before | Yes | Earliest valid time (unix ms) | |
| not_after | Yes | Latest valid time (unix ms) | |
| supported_versions | Yes | Protocol versions supported, highest first (e.g., ['1.0']) | |
| attestation_grade | No | For agents: APS attestation grade 0-3 | |
| capabilities | No | Optional capability tags |