Certificate Renewals: Automate Them or Calendar Them, but Pick One
Every expired-certificate outage we have caused or witnessed — the count is embarrassing on both sides — had the same root cause. Not a broken tool. Not a hostile CA. Renewal was nobody's assigned job and everybody's background assumption, right up until the 3 a.m. page.
The two honest options
Automate it. An ACME client with a working DNS or HTTP challenge, a renewal timer, and — the part everyone skips — an alert on the result of renewal attempts, not just on expiry. Automation that fails silently for 60 days is worse than no automation, because it retires your vigilance along with your workload.
Calendar it. Some environments genuinely cannot automate: air-gapped systems, certificates from internal CAs with manual approval, appliances with a web UI from another century. Fine. Then renewal is a recurring calendar event with an owner, a deputy, and a lead time of at least a third of the certificate's lifetime. A 90-day certificate gets a renewal task at day 45, not day 85.
The dishonest option
The failure mode is the middle: "we mostly automated it." The cron exists but the deploy hook was never tested. The reminder exists but goes to a mailing list nobody reads. The runbook exists but describes last year's infrastructure. Partial systems produce full confidence and partial coverage, which is the worst combination available.
Our checklist now
- Every certificate has a named owner — a person, not a team.
- Expiry monitoring is external: something outside the machine checks the live certificate weekly, so a dead monitoring stack cannot hide a dying certificate.
- Renewal is rehearsed once, end to end, before it is needed — the same rule we apply to backups.
Certificates are the cheapest reliability problem you will ever have. They only become expensive when they are treated as beneath having a process.