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.
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 |