TLS is the one piece of security nearly everyone gets right at the level of the algorithm: modern ciphers, forward secrecy and strong key exchange are largely solved and on by default. The failures are almost never cryptographic. They are operational: the certificate that expires at 2 a.m. and takes down checkout, the private key copied onto a laptop, the internal certificate authority nobody documented, the wildcard cert shared across forty services so that one compromise exposes them all. PKI hygiene is where the real risk lives.
A TLS certificate is a statement of identity vouched for by a trusted authority, and its security rests on two things: the secrecy of the private key, and the integrity of the trust chain. Everything that goes wrong is a lapse in one of those. A leaked private key lets an attacker impersonate the service and, where forward secrecy is not in use, decrypt captured traffic. A sloppy trust chain lets an attacker mint trust they should not have. Examples are an over-trusted internal CA, an unexpected intermediate, or a certificate issued for a name it should never have covered. The maths holds; the key management does not.
Expiry is a security event as well as an outage
The most common certificate failure is the dullest: it expires. Teams treat this as an availability problem because the site goes down, but it is also a discovery problem. An unexpected expiry almost always means a certificate nobody was tracking, which means an asset nobody was managing. As maximum public certificate lifetimes keep shrinking, manual renewal stops being viable. Automated issuance and renewal is the only way to run PKI without regular self-inflicted outages.
- Inventory every certificate and CA. You cannot manage what you have not enumerated. Certificate transparency logs and network scanning both surface certs your spreadsheet missed.
- Automate issuance and renewal. Short lifetimes make manual renewal untenable; automation removes both the outage risk and the temptation to issue long-lived certs to avoid the chore.
- Protect private keys like the crown jewels they are. Generate keys where they will live, store them in an HSM or a secrets manager, never email or copy them, and rotate on any suspicion of exposure.
- Right-size your wildcards and SANs. A wildcard shared across every service turns one key compromise into a total impersonation; scope certificates to reduce blast radius.
- Govern your internal CA. A private CA that can issue for any name is a master key; restrict who can request certificates and constrain what names each can cover.
The trust store no one audits
Beyond your own certificates sits a quieter risk: what your systems trust. Every server and endpoint carries a store of trusted root authorities, and anything signed by any of them is accepted. An attacker who can slip a rogue CA into that store, through a compromised device build, a careless internal root, or malware, can forge trusted certificates for anything. Trust-store hygiene is the neglected mirror image of certificate hygiene: managing the authorities you are willing to believe as well as the certificates you present.
Make it boring, on purpose
Good PKI is invisible: certificates renew themselves before anyone notices, keys live in hardware, expiries never surprise, and a full inventory is one query away. Organizations that suffer certificate incidents have usually lost track of their certificates. An automated, inventoried and monitored PKI makes that whole class of outage and impersonation risk far rarer.
Certificates you cannot see are certificates you cannot renew, revoke or trust-check. Most PKI incidents trace back to a certificate or CA that fell off the inventory, so discover what you have before you try to defend it.