Skip to main content

X.509 Certificate Structure and PKI Components

I. X.509 — the certificate standard format​

Certificates used today in TLS/code-signing/S/MIME follow the X.509 v3 standard. Main fields:

FieldMeaning
VersionVersion (v3)
Serial NumberUnique serial assigned by the CA (used to identify revocation)
Signature AlgorithmSigning algorithm (e.g., SHA-256 with RSA / ECDSA)
IssuerDistinguished name (DN) of the issuer (CA)
ValidityValidity period (Not Before ~ Not After)
SubjectDN of the subject (certificate owner)
Subject Public KeyThe subject's public key + algorithm
Extensions (v3)Extension fields (below)
SignatureThe CA's signature over the above

Key v3 extensions​

ExtensionRole
SAN (Subject Alternative Name)List of actual applicable domains. Modern browsers look at SAN, not CN
Key UsageKey purpose (digital signature, key encipherment, etc.)
Extended Key Usage (EKU)Detailed purpose (serverAuth, clientAuth, codeSigning…)
Basic ConstraintsCA:TRUE/FALSE — whether it's a CA certificate, chain depth
AKI / SKIAuthority/Subject Key Identifier — used to link the chain
CRL Distribution / AIALocation of revocation list / OCSP / issuer certificate

:::caution CN is no longer trusted In the past the domain went in the Common Name (CN), but browsers now use only SAN for domain validation. Without SAN, it's rejected as a domain mismatch. :::

II. Encoding and file extensions​

The same certificate differs by encoding/purpose.

Encoding/formatDescriptionExtensions
DERBinary.der .cer
PEMDER as Base64 + -----BEGIN CERTIFICATE----- header.pem .crt .cer
PKCS#12Certificate + private key bundled, password-protected.p12 .pfx
PKCS#7Certificate/chain bundle (no key).p7b
CSRCertificate Signing Request.csr
-----BEGIN CERTIFICATE-----
MIIDdjCCAl6gAwIBAg-...(Base64)...
-----END CERTIFICATE-----

III. PKI components​

PKI (Public Key Infrastructure) is the whole system that issues, manages, and verifies certificates.

ElementRole
CA (Certificate Authority)The trusted entity that issues/signs/revokes certificates
RA (Registration Authority)Verifies applicant identity (screens on behalf of the CA)
VA (Validation Authority)Provides revocation status (OCSP/CRL)
CSRThe "signing request" the applicant creates (public key + identity)
Certificate repositoryPublishes issued certificates / CRLs
Subscriber / relying partyThe certificate owner / the party that trusts it (the browser)

Issuance flow (concept)​

Applicant: generate a key pair (keep the private key) → create a CSR (public key + identity) → submit to CA
CA/RA: verify identity / domain ownership (DV/OV/EV)
CA: on pass → sign with the CA private key → issue certificate
Applicant: install certificate + intermediate CA (chain)

:::info The private key is never handed over A CSR carries only the public key. The private key never leaves the applicant's server. This is a basic PKI principle. :::

IV. Validation levels (DV / OV / EV)​

LevelValidation scopeUse
DV (Domain Validation)Confirms domain ownership onlyMost websites, automated issuance (ACME)
OV (Organization Validation)Verifies the organization's existence tooCorporate sites
EV (Extended Validation)Strict legal-entity verificationFinance, etc. (formerly the green address bar)

Encryption strength is identical across all three. The difference is only the rigor of identity validation.

V. Conclusion​

An X.509 certificate is a structured document of identity + public key + extensions (SAN, etc.) + CA signature, and PKI is the ecosystem that issues/verifies/revokes it. The next document looks at how these certificates connect into a chain of trust and the role of the root.