certguard-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Use certguard-mcp to decode X.509 PEM/DER certificate bundles offline, detect inverted Leaf -> Intermediate CA chains and weak SHA-1 or <2048-bit RSA keys, verify mathematical SubjectPublicKeyInfo (SPKI) parity across Certificate, CSR, and Private Key without exposing private scalars, validate RFC 6125 wildcard SAN coverage, and extract gateway hex serial numbers and SHA-256 SPKI pins.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| audit_x509_pem_chainA | 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. |
| verify_spki_key_and_csr_matchA | Verifies mathematical SubjectPublicKeyInfo (SPKI) match across Certificate, PKCS#10 CSR, and PKCS#8/PKCS#1/SEC1 Private Key locally without exposing private key scalars. |
| check_hostname_rfc6125_sanA | Validates target hostnames and IPv4/IPv6 literals against X.509 SubjectAltName DNS/IP entries per RFC 6125, catching bare-apex *.example.com and multi-level wildcard traps. |
| extract_cert_serial_and_spki_pinsA | Extracts uppercase contiguous Hex serial numbers (for WeChat Pay v3 serial_no and mTLS gateways), SHA-256 certificate thumbprints, and Base64 SHA-256 SPKI pins. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| audit-tls-fullchain-bundle | Audit a fullchain.pem bundle for inverted Leaf -> Intermediate CA ordering, missing intermediates, weak keys, and expiry countdowns. |
| verify-renewal-key-csr-parity | Verify mathematical SubjectPublicKeyInfo (SPKI) match across renewed Certificate, CSR, and Private Key files without exposing key scalars. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| X.509 Chain Topology, Key Parity & RFC 6125 Wildcard Audit Rules | Structured JSON catalog of CertGuard X.509 chain ordering, key strength, SPKI parity, and RFC 6125 SAN rules. |
| Zero-Downtime TLS Certificate Renewal & Gateway Serial Checklist | Operational checklist preventing Nginx key-mismatch aborts, Android/webhook AIA failures, and bare-apex SAN outages. |
TDQS
Scored across 4 tools
Each tool targets a distinct, non-overlapping check: chain ordering/strength audit, SPKI-to-CSR-to-key matching, RFC 6125 hostname/SAN validation, and serial/thumbprint/pin extraction. There is no plausible scenario where an agent would confuse one for another.
All four tools follow a consistent verb_noun snake_case pattern (audit_, verify_, check_, extract_) with descriptive domain qualifiers. Names are long and packed with qualifiers, but the convention is uniform and readable.
Four tightly scoped tools fit a focused certificate-validation server and each earns its place. It is on the lean side, but nothing is redundant or filler.
The surface covers chain inspection, key/CSR matching, hostname validation, and pin extraction, but has notable gaps for a cert-guard domain: no revocation checking (OCSP/CRL), no chain signature/trust-anchor verification, and no self-signed or expiry-only summary tool. Agents can work around some of this externally, but revocation is a real dead end.