SSL/TLS Certificate Auditing Checklist: Catching Expiring & Weak Certs
Audit X.509 SSL/TLS certificates across load balancers, Kubernetes ingress, and APIs: verify PEM chains, SAN coverage, ECDSA/RSA key strength, short-lived renewals, and SHA-256 fingerprints.
// key takeaways
- Always inspect the entire PEM chain (leaf + intermediates), not just the leaf certificate — browsers sometimes hide missing intermediates via AIA fetching while curl, Go, and Python clients fail hard.
- Standardize on ECDSA P-256 (or P-384) or RSA 2048+ bit keys signed with SHA-256/SHA-384; eliminate legacy SHA-1 signatures and weak RSA-1024 keys completely.
- With public CA lifetimes shrinking toward 47-day certificates, manual calendar-reminder renewals are obsolete — automate ACME renewals and alert on days-remaining thresholds.
- Verify Subject Alternative Names (SANs) explicitly; modern TLS stacks ignore the legacy Common Name (CN) field.
Fetch and inspect the exact certificate chain served in production
Checking a certificate file sitting on disk is not enough: load balancers, CDNs, and Kubernetes ingress controllers frequently serve cached secrets or misordered bundles. Always pull the live certificate chain directly over TLS with SNI enabled so you inspect what real clients receive.
Once you dump the PEM blocks, verify three details first: exact Subject Alternative Names (DNS and IP entries), NotBefore / NotAfter timestamps in UTC, and that every intermediate certificate up to (but not necessarily including) a trusted root CA is served in order.
# Dump the leaf certificate in PEM format (paste straight into /tools/ssl-certificate-decoder)
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -outform PEM
# Inspect the full presented chain (leaf + intermediates) and expiry dates
openssl s_client -showcerts -connect example.com:443 -servername example.com </dev/null 2>/dev/null | awk '/BEGIN CERTIFICATE/,/END CERTIFICATE/{ print }'
# Print SHA-256 fingerprint + SANs directly
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -subject -issuer -dates -fingerprint -sha256 -ext subjectAltNameKey size, signature algorithm, and protocol baselines for 2026
Weak cryptography rarely shows up as a dramatic alert until a browser update, payment gateway, or enterprise security scan rejects your handshake. Enforce clean cryptographic baselines across public edges and internal mTLS meshes alike:
- Public keys: Prefer ECDSA P-256 (smaller handshakes, faster TLS termination, strong security margin) or RSA 2048-bit minimum (3072-bit for longer-lived internal CAs). Reject RSA < 2048 bits everywhere.
- Signature hashes: Require SHA-256 (sha256WithRSAEncryption / ecdsa-with-SHA256) or SHA-384. Any SHA-1 or MD5 signature in a leaf or intermediate certificate is an immediate audit failure.
- Protocol versions: Serve TLS 1.3 and TLS 1.2 with AEAD ciphers (AES-GCM, ChaCha20-Poly1305) only. Disable SSLv3, TLS 1.0, and TLS 1.1 across load balancers, reverse proxies, and database endpoints.
- SAN hygiene: Verify wildcard certificates (*.example.com) only match a single subdomain level — *.example.com will not cover api.v2.example.com or the apex example.com unless explicitly listed in SANs.
Preparing for shorter certificate lifetimes and ACME automation
Industry ballot schedules are compressing public TLS certificate validity windows from 398 days down toward 200 days, 100 days, and ultimately 47 days over the coming renewal cycles. Any team still opening tickets to upload PEM files manually into cloud consoles is guaranteeing future outages.
Automate issuance end-to-end with ACME clients (cert-manager in Kubernetes, Caddy, Lego, or cloud-native managed certs), rotate private keys on renewal, and alert at 21 days and 7 days before expiry using synthetic TLS monitors (for example via Datadog synthetic checks or Prometheus Blackbox Exporter) rather than waiting for 24-hour emergencies.
Monitor Certificate Transparency logs and internal mTLS stores
Auditing your own endpoints catches misconfigurations you know about; monitoring Certificate Transparency (CT) logs catches shadow-IT subdomains and unauthorized certificate issuance for your domains. Subscribe to CT alerts for every apex domain you own so unexpected certificates trigger a Slack alert immediately.
Do not overlook internal east-west certificates either — Kubernetes webhook certificates, Redis/PostgreSQL TLS certs, and service-mesh intermediate CAs expire just as loudly as public websites, often taking down deployments when cert-manager or SPIFFE rotation breaks silently.
// actionable engineering checklist
Decode every public and staging PEM bundle to verify full chain order
Confirm leaf comes first followed by required intermediates, and test with curl/Go clients that do not perform browser AIA chasing.
Audit key algorithms and signature hashes across all ingress endpoints
Enforce ECDSA P-256/P-384 or RSA >= 2048-bit with SHA-256/384 signatures and TLS 1.2/1.3 only.
Alert on certificate expiry at 30, 14, and 7 days across public and internal TLS
Cover API gateways, Kubernetes admission webhooks, mail servers, and database endpoints — not just your marketing homepage.
Watch Certificate Transparency logs and pin OpenSSL security advisories
Subscribe to /t/openssl/feed.xml so TLS library CVEs reach your infra team alongside cert hygiene alerts.
// connected pwn.watch tools & live trackers
SSL Certificate Decoder (X.509 PEM) →
Decode X.509 PEM certs and full chains locally: Subject, Issuer, SANs, expiry countdown, key bits, and SHA-256 fingerprints.
SHA-256 / HMAC Hash Generator →
Verify certificate digests, webhook signatures, and Base64URL payloads client-side.
Stack & Tag CVE Trackers
Security Hubs & Feeds
Frequently Asked Questions
- Why does my site work in Chrome but fail TLS verification in curl or Python?
- Browsers often download missing intermediate certificates automatically using the certificate's Authority Information Access (AIA) URL. CLI tools, Go services, and Python requests do not — serve fullchain.pem (leaf + intermediates) from your server.
- Should we choose ECDSA P-256 or RSA 2048 for new TLS certificates?
- ECDSA P-256 is the modern default: it provides stronger cryptographic margin than RSA 2048 with noticeably smaller certificates and faster TLS handshakes, and is supported by every modern browser and OS.
- Is it safe to decode a PEM certificate in an online tool?
- Public X.509 certificates are already broadcast on every TLS handshake, and pwn.watch's SSL Certificate Decoder parses ASN.1 DER 100% locally in your browser. Still, never paste private keys anywhere.
Get an email when a new major security incident drops. No spam, unsubscribe any time.