Certificates, and the expiry that takes you down
Lesson 12.03 told you to give every workload a verifiable identity and to authenticate each hop with mutual TLS. It did not tell you where those certificates come from, who signs them, or what happens when one runs out. That machinery is a production system you now operate, and its most frequent failure is not a breach — it is a date.
What a certificate actually asserts
Four things: a name, a public key, a window of validity, and a signature from an issuer. Verifying one means walking the chain of signatures up to a root you had already decided to trust, and checking that today falls inside the window. There is nothing else in there. Every property people attribute to TLS rests on those four fields and on the trust store that decides which roots count.
The hierarchy is a blast-radius decision
A single certificate authority signing everything directly is the simplest thing that works, and it is effectively unrotatable: replacing that key means touching every trust store in the estate simultaneously, which is the kind of change that gets deferred forever.
A root that signs intermediates, and intermediates that sign workloads, costs one more layer and buys two things. An intermediate compromise is survivable — you revoke that intermediate and reissue beneath a new one, without redistributing the root. And the root itself can be kept offline, used a few times a year, which is what makes it worth protecting with hardware.
Three things people call "the key store", which are not the same
- A secrets manager stores a value you gave it and hands it back. The material travels to your process, which means your process can leak it.
- A KMS holds a key and performs operations with it on your behalf. The material never leaves, so you send data to the key rather than the key to your data.
- An HSM does that inside a tamper-resistant device with an attestable audit trail. You buy one for two reasons and should be able to say which: a root of trust whose private key provably never existed in software, or an auditor who requires exactly that.
The architectural consequence of the second and third is easy to miss. Once the key cannot leave, every signing operation is a network call to a service with its own latency, its own throughput ceiling and its own availability — and an outage of it is an outage of you. That is a dependency to put on the diagram, not a checkbox.
Expiry is the failure that actually happens
Compromises make the news; expired certificates take down more systems. The reason is structural rather than careless. A certificate works flawlessly for a year and then fails everywhere at once, at a moment nobody chose, and by then the person who installed it has changed teams and the runbook describes a console that has been redesigned twice.
Manual renewal has an eventual failure rate of one hundred percent, given enough certificates and enough time. So the fix runs in the opposite direction from intuition: make certificates short-lived, so that renewing them has to be automated. A ninety-day certificate gets renewed by a human, eventually badly. A twenty-four-hour certificate forces an issuance pipeline into existence, and a pipeline that runs every day is a pipeline that is tested every day.
Short lifetimes also let you mostly avoid revocation, which is fortunate, because revocation is the part of this that does not work well. Revocation lists are large and stale by design; the online alternative puts a network dependency inside every handshake, and because failing closed on it would be an outage, nearly everyone fails open — at which point an attacker who can block the check has defeated it.
Clock drift becomes a security-adjacent bug
Validity is a time window, so Lesson 6.06 arrives here too. A node whose clock is a day fast rejects newly issued certificates as not yet valid, and one running slow keeps trusting expired ones. The symptom is a handshake failure that says nothing whatsoever about time, which is why "check the clock" belongs early in that runbook rather than late.
Alerting on the certificates you remembered to write down. The estate's certificates are not in a list — they are in load balancers, mesh sidecars, database TLS configs, client trust bundles, a mobile app's pinned set, a partner's inbound integration, and one appliance nobody has logged into since 2019. Any inventory maintained by hand is missing the one that will page you. Discover them from what is actually serving, alert at thirty days, seven days and one day on everything found, and treat the internal certificates as the dangerous ones: the public ones have a vendor with automated renewal and a support line, and the internal ones have you.
The tradeoff sheet
- Problem solved
- Workload identity the receiving side can verify, instead of trust inferred from the address a call arrived from.
- Rejected, and why
- A shared static credential is trivial and cannot be attributed or rotated. A public CA is fully automated and cannot issue identities for internal service names. A mesh gives you this as a by-product if you were adopting one anyway (Lesson 10.04).
- The trade
- A certificate authority becomes production infrastructure with an availability target, and issuance sits on the critical path of every workload start.
- First to break at 10x
- Issuance throughput and trust distribution, never the cryptography. At 10x workloads short lifetimes mean constant reissuance, and one trust bundle nobody updated fails an entire fleet simultaneously.
- What it does to the bill
- Modest for a private CA, substantial for hardware — and on managed key services every signature is a metered call with latency attached.
- Day-2 operations
- Discover expiry from what is actually serving rather than a hand-kept list, and alert at thirty, seven and one day. Rehearse rotating an intermediate before the day you must.
Going deeper
- Bulletproof TLS and PKI Ivan Ristić, 2nd ed. 2022
The practical reference for how this actually behaves in production, including the chapters on revocation that explain why nobody relies on it.