audit_x509_pem_chain
Audit X.509 PEM or Base64 DER certificate bundles to detect chain-order issues, missing intermediates, weak SHA-1/RSA keys, and upcoming expirations before deployment.
Instructions
Decodes X.509 PEM or Base64 DER certificate bundles, detects scrambled Leaf -> Intermediate CA order, missing intermediates, weak SHA-1/<2048-bit RSA keys, and expiry countdowns.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "audit_x509_pem_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| certPem | No | X.509 PEM certificate or fullchain.pem bundle text (only public CERTIFICATE blocks are emitted). | |
| certPath | No | Optional local file path to a .pem, .crt, or .cer certificate bundle when certPem is omitted. | |
| stripRoot | No | When true (default), strips redundant self-signed Root CA certificates from autoOrderedFullchainPem. | |
| minDaysRemaining | No | Optional custom expiry warning threshold in days (defaults to 30). | |
| referenceTimeIso | No | Optional ISO-8601 timestamp overriding wall-clock time for deterministic expiry calculations. |