x509-inspect
X.509 certificate inspection from PEM — Takes a PEM-encoded X.509 certificate and returns its fields (subject, issuer, serial, validity window, SANs, key usage, EKU, basic constraints, signature algorithm, public key algorithm and bit size) plus a fail-on-issue audit: expired or not-yet-valid, hostname/SAN mismatch per RFC 6125 §6.4.3 wildcards, weak signature (SHA-1), short RSA (<2048), serverAuth without SAN (CABF BR 7.1.4.2.1). Decod
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": {
"pem": "<pem>"
},
"name": "x509-inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pem | Yes | A PEM block beginning with '-----BEGIN CERTIFICATE-----'. | |
| nowIso | No | Override 'now' for deterministic tests. | |
| hostname | No | Optional hostname to check against the certificate's SANs. | |
| trustAnchors | No | Trust anchors (PEM). When present, chain cryptographic verification runs. | |
| intermediates | No | Intermediate certs (PEM) between leaf and anchor. | |
| maxChainDepth | No | Chain depth cap (default 8). |