Lesson 2 of 9 · 22m
Certificate Anatomy: The Fields That Matter
Subject, SANs, issuer, validity, key usage, EKU, SKI, and AKI — the handful of fields that determine whether a certificate works in production.
Certificates look opaque until you learn which fields machines actually consume. Most operators can recite the acronym soup but cannot answer the only question that matters during an outage: which field failed validation? Learn the anatomy and half the mystery disappears.
Inspect before you theorize
openssl x509 -in server.crt -noout -text | sed -n '1,80p'A stripped-down certificate looks like this:
Subject: CN = api.payments.sudosecurity.org
Issuer: CN = SudoSecurity Services CA G2
Validity
Not Before: Jan 8 00:00:00 2026 GMT
Not After : Apr 8 23:59:59 2026 GMT
X509v3 extensions:
Subject Alternative Name:
DNS:api.payments.sudosecurity.org, DNS:api-pay.internal
Key Usage: critical
Digital Signature
Extended Key Usage:
TLS Web Server Authentication
Subject Key Identifier: 4A:11:...
Authority Key Identifier: 91:BE:...SANs are the identity, not the subject CN
Modern clients match the DNS name against the Subject Alternative Name extension. The legacy CN is mostly display data. A certificate with CN=correct-name but no matching SAN is not valid for that hostname in mainstream clients.
This produces a classic internal-tool failure: the certificate looks right in a GUI because the CN says the right thing, while curl or Chrome rejects it because the SAN list omits the name.
Validity is exact, and clocks are liars
Certificates are valid from notBefore through notAfter, compared in UTC. A certificate that starts working minutes after deployment is usually not propagation; it is clock skew or a not-yet-valid certificate.
date -u
openssl x509 -in server.crt -noout -datesContainers and VMs resuming from snapshots can be minutes or years wrong. Authentication systems fail spectacularly when the validator thinks it is 1970.
Usage fields are policy gates
A server certificate normally needs keyUsage with digital signature and extendedKeyUsage with serverAuth. A client certificate needs clientAuth. CA certificates need basicConstraints: CA=TRUE and usually keyCertSign. A leaf accidentally issued with CA=TRUE is a security incident even if applications still accept it.
The Authority Key Identifier in a leaf points to the Subject Key Identifier of the issuing CA. When CA generations overlap, these identifiers matter more than the human-readable issuer name.
Field notes
- Fast triage:
openssl x509 -noout -subject -issuer -dates -ext subjectAltName. - Wildcards cover one label:
*.svc.examplematchesa.svc.example, nota.b.svc.example. - ECDSA P-256 is normal and strong; RSA 2048 remains common for compatibility.
- Do not stuff organizational identity into certificates for humans. Machines read SAN, key usage, and issuer; humans read logs.
Was this lesson helpful?