Build Mutual-Auth Certificate
mutualAuthBuildCertificateBuild and sign a mutual-auth certificate for an agent or information system using the issuer's Ed25519 private key, returning a signed object ready for a handshake.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"role": "<role>",
"subject_id": "<subject_id>",
"subject_pubkey_hex": "<subject_pubkey_hex>",
"issuer_id": "<issuer_id>",
"issuer_role": "<issuer_role>",
"issuer_pubkey_hex": "<issuer_pubkey_hex>",
"issuer_privkey_hex": "<issuer_privkey_hex>",
"binding": "<binding>",
"not_before": "<not_before>",
"not_after": "<not_after>",
"supported_versions": "<supported_versions>"
},
"name": "mutualAuthBuildCertificate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Role of the subject this cert identifies | |
| binding | Yes | For an agent: the APS agent_id. For an IS: the resource domain (e.g., mcp://api.bank.com) | |
| issuer_id | Yes | Issuer identifier | |
| not_after | Yes | Latest valid time (unix ms) | |
| not_before | Yes | Earliest valid time (unix ms) | |
| subject_id | Yes | Stable subject identifier (e.g., agent DID, IS endpoint URL) | |
| issuer_role | Yes | Role of the issuer | |
| capabilities | No | Optional capability tags | |
| attestation_grade | No | For agents: APS attestation grade 0-3 | |
| 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 | |
| subject_pubkey_hex | Yes | Ed25519 public key (hex) of the subject | |
| supported_versions | Yes | Protocol versions supported, highest first (e.g., ['1.0']) |