How to Recover from a Complete Certificate Authority Failure

When a primary database goes down, modern infrastructure automatically fails over to a read replica. When a Kubernetes node crashes, pods are immediately rescheduled. But when a Certificate Authority ...

Tim Henrich
December 02, 2026
7 min read
24 views

How to Recover from a Complete Certificate Authority Failure

When a primary database goes down, modern infrastructure automatically fails over to a read replica. When a Kubernetes node crashes, pods are immediately rescheduled. But when a Certificate Authority (CA) fails, the resulting outage is often total, silent, and incredibly difficult to untangle.

Public Key Infrastructure (PKI) has evolved from a background IT administrative task into the critical foundation of Zero Trust architecture. Machine identities—containers, microservices, and APIs—now vastly outnumber human identities. If your issuing CA fails, CI/CD pipelines halt, Kubernetes cluster scaling breaks, and secure service-to-service communication stops.

Recent history proves that even hyperscalers struggle with this. From the global Starlink outage in April 2024 caused by an expired ground-station certificate to historical Microsoft Azure outages tied to PKI misconfigurations, the lesson is clear: redundancy must exist at the certificate issuance level, not just the infrastructure level.

With the impending industry shift toward 90-day maximum validity for public TLS certificates and stringent new resilience regulations like the EU’s Digital Operational Resilience Act (DORA), manual disaster recovery for certificate infrastructure is no longer mathematically possible.

Here is how to architect a disaster recovery plan that actually works when your primary certificate infrastructure goes offline.

The HSM Trap: Why Database Backups Are Not Enough

The most common point of failure in PKI disaster recovery is a fundamental misunderstanding of what actually needs to be backed up. Organizations frequently back up their CA database—the SQL or flat-file record that tracks which certificates have been issued, revoked, or expired.

However, they fail to properly clone the Hardware Security Module (HSM) that contains the CA's private keys.

Without the private key, the CA database is useless. You know what was issued, but you have no cryptographic authority to issue new certificates or publish a new Certificate Revocation List (CRL).

Implementing Secure Key Replication

To solve this, your DR architecture must separate the database replication from the cryptographic key replication.

  1. Network-Attached HSMs: Instead of using PCIe-based HSMs plugged directly into a single server, utilize network-attached HSMs (such as Thales Luna or Entrust nShield).
  2. Encrypted Replication: Configure secure, encrypted replication between the HSM in your primary data center and the HSM in your DR site.
  3. M-of-N Control: Ensure that your key ceremonies utilize Shamir's Secret Sharing. Recovering a highly sensitive key (like a Root CA) should require multiple individuals (e.g., 3 out of 5 key custodians) to present their physical smart cards or tokens.

Because assembling key custodians at a physical DR site can take days during a regional disaster, industry best practice dictates a strict tiered architecture.

Architecting a Tiered PKI for Rapid RTO

Never issue end-entity certificates directly from a Root CA. A robust DR plan relies on an Offline Root CA and multiple geographically distributed Online Subordinate (Issuing) CAs.

Recovery Time Objectives (RTO) by Tier

  • Offline Root CA: The RTO for an Offline Root can safely be measured in days. Because it is physically disconnected from the network and only powered on to issue new Subordinate CAs or base CRLs, a primary site destruction simply means traveling to a secure vault, retrieving the backup tokens, and standing up a new offline machine.
  • Online Issuing CAs: The RTO for an Issuing CA must be measured in seconds or minutes. If an Issuing CA dies, another must take over seamlessly to support automated issuance via ACME, SCEP, or EST protocols.

If you are using HashiCorp Vault as your internal CA, you can achieve high availability and rapid disaster recovery by utilizing its Raft integrated storage.

Instead of relying on third-party database replication, Vault's Raft consensus protocol ensures the PKI state is synchronously replicated across nodes.

# Example: Taking a manual Raft snapshot for off-site DR storage
vault operator raft snapshot save /path/to/secure/storage/vault-pki-backup.snap

# In a complete disaster scenario where the cluster is lost, 
# you can initialize a new cluster and restore the state:
vault operator raft snapshot restore /path/to/secure/storage/vault-pki-backup.snap

Revocation Resilience: Preventing Secondary Outages

A secondary, often overlooked disaster occurs when a CA goes down and its previously issued certificates are still perfectly valid.

Clients (browsers, APIs, servers) rely on Certificate Revocation Lists (CRLs) or the Online Certificate Status Protocol (OCSP) to verify that a certificate hasn't been compromised. If your CA is down, it cannot publish updated CRLs.

CRLs have expiration dates. If a prolonged outage prevents the CA from publishing a new CRL before the old one expires, clients operating under strict validation rules will begin rejecting all currently valid certificates, triggering a massive secondary outage.

How to architect revocation resilience:
1. Decouple CRL distribution from the CA: Never host your CRLs on the CA server itself. Push them to highly available object storage (like AWS S3) and serve them through a Content Delivery Network (CDN) like Cloudflare or AWS CloudFront.
2. Overlap validity periods: If you publish a new CRL every 24 hours, set its validity period to 7 days. This gives your team a 6-day buffer to recover the Issuing CA and publish a new list before clients begin failing closed.

Automating Failover in a 90-Day Lifecycle

Google’s push to reduce maximum public TLS certificate validity to 90 days forces a paradigm shift. When certificates expire every three months, the volume of renewals increases by 400%. If your CA goes down, you have very little time before critical endpoints begin expiring.

Disaster recovery must now rely on automated issuance and automated failover. If you are managing machine identities in Kubernetes, cert-manager is the standard for automating this lifecycle.

To ensure DR readiness, you should configure your clusters with multiple ClusterIssuers. If the primary internal CA is unreachable, cert-manager should not just hang; you can architect fallback mechanisms or ensure your external load balancers route ACME requests to a secondary CA infrastructure.

# Example: A cert-manager Certificate resource pointing to a highly available 
# Vault PKI Issuer. The high availability is handled at the Vault load balancer level,
# ensuring cert-manager always has an endpoint to hit during a DR event.
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: production-api-cert
  namespace: default
spec:
  secretName: production-api-tls
  duration: 2160h # 90 days
  renewBefore: 360h # 15 days
  issuerRef:
    name: vault-cluster-issuer-ha
    kind: ClusterIssuer
  dnsNames:
  - api.production.example.com

Post-Quantum Cryptography: The Ultimate DR Scenario

Disaster recovery isn't just about physical servers catching fire; it encompasses cryptographic disasters. In August 2024, NIST finalized its first three Post-Quantum Cryptography (PQC) standards (FIPS 203, 204, and 205).

The eventual breaking of RSA and ECC encryption by quantum computers represents a systemic failure of current certificate infrastructure. A modern DR plan must include "crypto-agility"—the ability to rapidly revoke and reissue your entire certificate inventory using new algorithms with zero downtime.

To prepare for this, your DR runbooks must include procedures for cross-signing. You will need to spin up a new PQC-compliant Root CA, cross-sign it with your existing traditional Root CA, and push the new trust anchors to all endpoints simultaneously. If your infrastructure relies on hardcoded certificates or manual keystore updates, a cryptographic disaster will be unrecoverable.

Visibility: You Cannot Recover What You Cannot See

During a primary CA failure, the immediate question from leadership will be: "Which applications are going to break first?"

If you are failing over to a DR environment, you need precise, real-time visibility into the expiration status of every certificate across your infrastructure. Relying on spreadsheets or the native logs of the CA that just crashed is a recipe for cascading failures.

This is where continuous independent monitoring becomes a critical component of your DR strategy. By utilizing Expiring.at, you maintain an external, highly available source of truth for your certificate health.

Even if your primary issuance infrastructure is completely offline, Expiring.at continues to monitor your live endpoints, alerting you to which certificates are approaching expiration. This allows your incident response team to prioritize which services need immediate manual intervention or priority routing to the newly restored DR CA, preventing service disruption while the infrastructure team rebuilds the primary environment.

Auditing Your Certificate Disaster Recovery Plan

Regulatory frameworks like DORA and the NIS2 Directive classify PKI as critical ICT infrastructure. Auditors will no longer accept "we back up the database nightly" as a valid business continuity plan.

To ensure your certificate infrastructure can actually survive a disaster, audit your current setup against these technical requirements:

  1. Verify HSM Backups: Confirm that your HSMs are replicating to a geographically separate location and that key custodians have physically tested the M-of-N key reconstruction

Share This Insight

Related Posts