When an unknown web server presents a public key during an SSL handshake, how does your browser know that public key genuinely belongs to bank.com and not to an attacker eavesdropping on the network? Public Key Infrastructure (PKI) is the comprehensive framework of hardware, software, policies, and standards that binds public keys to verified identities using X.509 Digital Certificates.
PKI relies on trusted third-party organizations called Certificate Authorities (CAs) (such as DigiCert, Let's Encrypt, Sectigo):
veewom.com). Your server sends the Leaf certificate plus Intermediate certificates (the full Certificate Chain) to the visiting browser.Standardized under ITU-T X.509, digital certificates contain structured cryptographic fields:
*.veewom.com).veewom.com, api.veewom.com).Let's Encrypt Authority X3).Not Before and Not After dates (Industry maximum validity is currently 398 days).When a private key is accidentally leaked or stolen, the certificate must be revoked before its expiration date:
| Revocation Mechanism | How It Operates | Flaws & Security Limitations |
|---|---|---|
| CRL (Certificate Revocation List) | CA publishes a periodic flat list of serial numbers of revoked certs. Browsers download the file. | Files grow to tens of megabytes; slow connection delays; updates are delayed by days. |
| OCSP (Online Certificate Status Protocol) | Browser queries the CA's live server directly: "Is certificate #12345 valid right now?" | Leaked privacy: the CA learns every website the user visits; causes network latency. |
| OCSP Stapling (RFC 6066) | The web server periodically queries the CA, caches the time-stamped CA response, and staples it directly to the TLS handshake. | GOLD STANDARD! Zero privacy leak, zero browser latency, tamper-proof cryptographic CA timestamp. |
# 1. Generate an ECDSA private key and Certificate Signing Request (CSR)
openssl ecparam -name prime256v1 -genkey -noout -out server.key
openssl req -new -key server.key -out server.csr
# 2. Inspect raw contents and expiration of an X.509 certificate
openssl x509 -in server.crt -text -noout
# 3. Test live SSL certificate chain on a remote domain
openssl s_client -connect veewom.com:443 -servername veewom.com
Broaden your defensive and offensive security knowledge across our curriculum:
How servers present X.509 certificates to prove domain identity to browsers.
Public key math underlying digital certificates and CA signature chains.
University exam questions on Root CAs, Intermediate CAs, CRL, and OCSP.
Lab exercise generating a self-signed Root CA and signing web server certificates.