Certificates and PKI

Articles on certificates and PKI. From cryptography basics to TLS, operations, and troubleshooting, the series explains it step by step.

Certificates and PKI

[Certificate Fundamentals Supplement] Certificate Validity Reduction Timeline: 200, 100, and 47 Days, Let’s Encrypt’s 64 Days, and What to Do When

A quick-reference timeline of the shrinking validity of public TLS certificates: the CA/Browser Forum's 200, 100, and 47 days and domain validation reuse periods, MPIC, the end of phone and email domain validation, Let's Encrypt's 64 and 45 days, and ACM's 198 days. When each change applies, who it affects, and what to do before the next step.
Certificates and PKI

[Certificate Fundamentals Part 11] Certificate Design Exercises: LB Termination, 47-Day Certificates, Private CA, Partial Errors, and vSphere

The final part is a set of design exercises that put what you have learned to use. Five cases, each with a sample answer and explanation: how to set up certificates for two web servers and a load balancer, rethinking operations for 47-day certificates, how to prepare certificates for internal systems, isolating "only some devices show certificate errors," and moving vCenter and ESXi to private CA certificates. Part 11 of an 11-part series.
Certificates and PKI

[Certificate Fundamentals Part 10] Certificate Troubleshooting: How Errors Appear, Isolation Steps, and a Series Wrap-Up

A step-by-step guide to isolating the cause of a certificate error. It covers how errors appear in Chrome, curl, and PowerShell, a forgotten intermediate certificate, TLS version and cipher suite mismatches, the order of isolation from device to server, the commands to check with, a table mapping causes to commands, and a quick-reference table and takeaways for the whole series. Part 10 of an 11-part series.
Certificates and PKI

[Certificate Fundamentals Part 9] Private PKI and the Cloud: Designing and Protecting AD CS, ACM and Private CA, TLS Termination at Load Balancers, and vSphere

This article explains private PKI and certificates in the cloud. It covers the two-tier AD CS design, where to publish CRLs and AIA, why not to put an issuing CA on a DC, certificate templates and auto-enrollment, vulnerabilities such as ESC1 to ESC8 and Certifried, how to operate AD CS safely, ACM, AWS Private CA and the Azure equivalents, TLS termination at load balancers, and how to use VMCA in vSphere. Part 9 of an 11-part series.
Certificates and PKI

[Certificate Fundamentals Part 8] Lifecycle and Automation: Expiration Incidents, Inventory, ACME, ARI, and Expiration Monitoring

This article explains how to keep certificates from expiring. It covers real expiration incidents, why manual renewal breaks down as validity periods shrink, inventory with CT, scanning, and a ledger, the ACME flow and how to choose a challenge, Let's Encrypt today, ACME clients, ARI, ACME for private CAs, expiration monitoring, key rotation, and what to do with devices you cannot automate. Part 8 of an 11-part series.
Certificates and PKI

[Certificate Fundamentals Part 7] How TLS Works: The TLS 1.3 Handshake, Cipher Suites, SNI/ECH, mTLS, and PQC

This article explains how certificates are actually used in communication, through how TLS works. It covers the history from SSL to TLS 1.3 and why old methods were banned, the TLS 1.3 handshake and the role of each message, differences from TLS 1.2, how to read cipher suites, SNI, ALPN, and ECH, session resumption and 0-RTT, mTLS, PQC hybrid key exchange, recommended settings, and how to investigate with s_client, curl, and PowerShell. Part 7 of an 11-part series.
Certificates and PKI

[Certificate Fundamentals Part 6] Certificate Types and Issuance: DV/OV/EV, Wildcards, CSRs, Domain Validation, and the Shift to 47 Days

This article explains certificate types and how a certificate gets issued. It covers the differences between DV, OV, and EV, cautions about wildcard certificates, what to put on one certificate, when to use public CAs, private CAs, and self-signed certificates, why a self-signed certificate protects nothing, how to create a CSR with openssl and certreq, where to create keys, domain validation methods and MPIC, and the schedule that shortens validity to 47 days. Part 6 of an 11-part series.
Certificates and PKI

[Certificate Fundamentals Part 5] PKI and How Trust Works: Certificate Chains, Trust Stores, Revocation, CT, and CAA

How far back along the chain of issuers does a certificate get trusted? This article explains how PKI works: the roles of the CA, RA, and VA, the chain of root CA, intermediate CA, and server certificate, forgotten intermediate certificates, trust stores and root programs, the eight verification steps, CRL and OCSP today, Certificate Transparency and CAA, and real cases of CAs losing trust. Part 5 of an 11-part series.
Certificates and PKI

[Certificate Fundamentals Part 4] Inside an X.509 Certificate: SAN, Extensions, File Formats, and How to Read the Contents

Learn to read what is inside a certificate. This article covers the X.509 structure and its basic fields, how to write the subject (DN), the SAN used for host name verification and its matching rules, key extensions such as Basic Constraints, EKU, and AIA, how to tell PEM, DER, PKCS#12, and PKCS#7 apart and convert between them, how to read a certificate with openssl and PowerShell, and how to fetch one from a server. Part 4 of an 11-part series.
Certificates and PKI

[Certificate Fundamentals Part 3] Trying It with openssl and PowerShell: Keys, Encryption, Hashes, Signatures, and Self-Signed Certificates

We run the cryptographic building blocks from Part 2 for real with OpenSSL 3 and Windows' built-in PowerShell and certutil. This article covers how OpenSSL 3 syntax changed, creating keys with genpkey, encryption and decryption with pkeyutl, hashes, signing and verifying, X25519 key exchange and HMAC, and creating a self-signed certificate, all with sample output. Part 3 of an 11-part series.
Certificates and PKI

[Certificate Fundamentals Part 2] Cryptography Basics: Symmetric Keys, Public Keys, Key Exchange, Hashes, and Signatures Explained with Diagrams

This article explains the cryptographic building blocks behind certificates and TLS with diagrams and no math. It covers symmetric encryption (AES) and authenticated encryption, the key distribution problem, public key encryption, key exchange (ECDHE) and forward secrecy, hash functions, why MD5 and SHA-1 are unusable, the difference between a MAC and a signature, key lengths, random numbers, and post-quantum cryptography (PQC). Part 2 of an 11-part series.
Certificates and PKI

[Certificate Fundamentals Part 1] Why Do We Need Certificates? The Three Things TLS Protects and Man-in-the-Middle Attacks

Certificates are more than "something you renew when it expires." This article explains the three threats of eavesdropping, tampering, and impersonation, what TLS does and does not protect, man-in-the-middle attacks that encryption alone cannot stop, how a certificate binds a public key to its owner, and how it differs from an SSH host key. Part 1 of an 11-part series.