Certificate Matches Key
certificate_matches_keyVerify that an X.509 certificate's public key matches a supplied public key or PKCS#8 private key, supporting DER, PEM, HEX, and base64 inputs.
Instructions
Check whether an X.509 certificate public key matches supplied public key bytes or a PKCS#8 private key.
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": {
"certificate": "<certificate>"
},
"name": "certificate_matches_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| certificate | Yes | X.509 certificate as DER, PEM, HEX, or base64 text. | |
| certificateFormat | No | Input format. Defaults to auto detection. | |
| privateKey | No | PKCS#8 private key as DER, PEM, HEX, or base64 text. | |
| privateKeyFormat | No | Input format. Defaults to auto detection. | |
| publicKey | No | SPKI public key as DER, PEM, HEX, or base64 text. | |
| publicKeyFormat | No | Input format. Defaults to auto detection. | |
| encoding | No | Output encoding for DER or value bytes. | hex |