Skip to main content
Home/Blog/X.509 Certificate Contents: Understanding Subject, Issuer, and Extensions
Security Tools

X.509 Certificate Contents: Understanding Subject, Issuer, and Extensions

Explore X.509 certificate structure including subject, issuer, validity period, public key, serial number, and extensions. Learn what each field means for SSL/TLS security.

By Inventive HQ Team•
X.509 Certificate Contents: Understanding Subject, Issuer, and Extensions

X.509 Certificate Decoder

Decode and analyze SSL/TLS certificates with security validation

Open the full X.509 Certificate Decoder tool →
Loading interactive tool...

What an X.509 certificate actually contains

An X.509 certificate is a signed data structure defined by RFC 5280, and it is really two things stapled together: a to-be-signed (TBS) body that holds the identity and key material, and a signature block where a Certificate Authority vouches for that body. The TBS body carries eight core fields — version, serial number, signature algorithm, issuer, validity period, subject, subject public key info, and (in version 3) a list of extensions. The signature block then repeats the algorithm identifier and stores the actual bytes the CA computed by hashing the TBS body and signing that hash with its private key. Everything a browser needs to decide "is this the right server, is the key trustworthy, and has it expired" lives in those fields.

That is the summary an AI Overview will give you. What it can't show you is how the fields fit together, which ones browsers actually enforce in 2026, and where each one goes wrong — so below is a labeled diagram of the real structure, a field-by-field reference table, and the modern gotchas (SAN vs CN, the shrinking validity limit, Basic Constraints) that decide whether a certificate is accepted or thrown out.

The anatomy of a certificate

Structure of an X.509 v3 certificate A certificate is split into a to-be-signed body containing the core fields and extensions, plus a signature block where the CA signs a hash of that body. X.509 v3 Certificate To-Be-Signed (TBS) body Version · Serial Number · Signature Algorithm Issuer (which CA signed this) Validity (Not Before → Not After) Subject (who this identifies) Subject Public Key Info (algorithm + key) Extensions (v3) Subject Alternative Name (SAN) Basic Constraints (CA:TRUE / CA:FALSE) Key Usage · Extended Key Usage Authority / Subject Key Identifier CRL Dist. Points · Authority Info Access Certificate Transparency SCTs SAN is what browsers match — not CN hash Signature Signature Algorithm CA hashes the TBS body, then signs the hash with its private key. signed bytes Verify chain: re-hash the body, check the signature with the issuer's public key.

Notice the split: the CA never signs the whole certificate, it signs a hash of the TBS body. When your browser validates the chain, it re-hashes that same body and checks the signature against the issuer's public key. Tamper with a single byte of the subject or the SAN list and the hash changes, the signature no longer verifies, and the connection is refused.

Field-by-field reference

FieldWhat it holdsWhy it matters / common gotcha
Versionv1, v2, or v3 (encoded 0, 1, 2)Only v3 supports extensions. Every real TLS cert today is v3.
Serial NumberUnique positive integer per issuing CAUsed by CRL/OCSP to name revoked certs. Must be ≤20 octets and carry random entropy (anti-collision).
Signature Algorithme.g. sha256WithRSAEncryption, ecdsa-with-SHA256SHA-1 signatures are deprecated and rejected by browsers.
IssuerDistinguished Name of the signing CAMust exactly match the Subject of the CA one link up the chain.
ValidityNot Before and Not After timestamps (UTC)Public TLS certs issued from 15 March 2026 through 14 March 2027 are capped at 200 days. Check the expiry before deployment.
SubjectDistinguished Name of the cert ownerCN inside the Subject is legacy — no longer used for hostname matching.
Subject Public Key InfoAlgorithm + the public key bytesRSA 2048+/ECDSA P-256+. This is the key the browser encrypts/verifies against.
Subject Alternative NameList of DNS names, IPs, or emailsThe field browsers actually match the hostname against. Wildcards (*.example.com) live here.
Basic ConstraintsCA:TRUE/CA:FALSE (+ path length)Stops a leaf cert from signing other certs. On a CA, pathLenConstraint:0 permits leaf issuance but no further non-self-issued intermediate CA.
Key UsageBit flags: digitalSignature, keyEncipherment, keyCertSign…Restricts low-level operations the key is permitted to do.
Extended Key UsageOIDs: serverAuth, clientAuth, codeSigning…Missing serverAuth = browser rejects the TLS handshake.
AKI / SKIAuthority & Subject Key IdentifiersHashes that let a verifier link a cert to the exact issuing key when building the chain.
AIA / CRL Dist. PointsURLs for OCSP and CA issuer / revocation listsHow clients fetch revocation status and missing intermediates.
Certificate PoliciesPolicy OIDs and optional qualifiersIdentifies the issuance policy; compare an OID with the CA's policy documentation rather than guessing its meaning.
Name ConstraintsPermitted or excluded name spaces in a CA certificateLimits the subject names and SANs that certificates below that CA may use.
SCTsSigned Certificate TimestampsProof the cert was logged to Certificate Transparency; Chrome requires them.

The three fields people get wrong

SAN, not CN. The single most common misconception is that the Common Name is the hostname. It was, historically — but since Chrome 58 (May 2017) and equivalent changes in Firefox and Safari, clients match the requested hostname only against the Subject Alternative Name list. If you request a cert with www.example.com in the CN but forget to include it in the SAN, every modern browser throws NET::ERR_CERT_COMMON_NAME_INVALID. When you deploy a cert, check the SAN list first — that is the authoritative name field.

The shrinking validity ceiling. Under the CA/Browser Forum Baseline Requirements, publicly trusted TLS certificates issued from 15 March 2026 through 14 March 2027 cannot exceed 200 days. The limit becomes 100 days from 15 March 2027 and 47 days from 15 March 2029. Private and internal CAs are not bound by these public-CA limits. Automate renewal so shorter lifetimes do not become outages.

Basic Constraints is a security boundary. CA:TRUE means a certificate is allowed to sign other certificates. On a leaf certificate this flag must be CA:FALSE (or absent). The infamous class of attacks where an end-entity cert was used to mint fraudulent certificates existed precisely because clients once ignored this flag. Today it is enforced: a leaf cert presenting CA:TRUE is a red flag, and a properly built chain checks it at every link.

Read a certificate yourself

You never have to trust a description — decode the certificate and read the fields directly. Paste the PEM block into our client-side X.509 decoder, which expands the DER structure entirely in your browser so the certificate never leaves your device. Or run it locally:

openssl x509 -in cert.pem -noout -text

To inspect the certificate a live server presents, use SNI to request the right hostname:

echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -text

This prints the first certificate the server returns. If you need to inspect intermediates too, run openssl s_client -connect example.com:443 -servername example.com -showcerts and decode each PEM block separately.

Both expand every field — version, serial, issuer, subject, validity, public key, and each extension. Before you trust or deploy a certificate, confirm three things: the SAN list contains the exact hostname you are serving, Not After is comfortably in the future, and the Extended Key Usage includes serverAuth. Those three checks catch the overwhelming majority of certificate failures.

Put These Security Tools to Work

Our security team uses industry-leading tools to protect businesses like yours. Get a free assessment to see how we can strengthen your defenses.