Join our Newsletter — 33% off our NHI Course
Home› Guides› PKI Disaster Recovery Guide: Backing Up CA Keys,…
Guide Resilience & Recovery

PKI Disaster Recovery Guide: Backing Up CA Keys, Databases and Restoring Issuance

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 14 min read
On this page

When an issuing CA fails, the first outage is not issuance but revocation: once its last CRL passes its next update time, relying parties that check revocation start rejecting every certificate it ever issued. Most PKI teams back up the CA database and assume they are covered, then discover during an incident that the private key was in an HSM nobody can activate, the registry configuration was never exported, or the templates lived only in Active Directory. This guide sets out what must be recoverable, how to back up CA keys under multi-person control, how to plan CRL validity so you have time to restore, and how to test recovery. It is for PKI engineers and infrastructure teams running private CAs, with Microsoft Active Directory Certificate Services (AD CS) as the worked example. For hierarchy design, see the Enterprise PKI Design and CA Hierarchy Guide; this page assumes the hierarchy exists and focuses on recovering it.

Key takeaways

  • A CA is several assets, not one. Private key, CA certificate chain, database and logs, configuration, templates, publication points and the people who hold activation material all need a recovery path.
  • CA signing keys are the exception to "do not back up signature keys". NIST SP 800-57 Part 1 says private signature keys are generally not backed up, but that backup may be warranted for a CA's private signing key, stored under the owner's control.
  • Backups need the same multi-person control as the live key. The CA/Browser Forum Baseline Requirements require CA private keys to be backed up, stored and recovered by trusted-role personnel under at least dual control.
  • CRL validity is your recovery time budget. The gap between the last published CRL and its next update time is how long you have to restore signing before validation fails.
  • Untested restores are assumptions. Same-name, same-path and same-architecture constraints in AD CS only surface when you actually restore onto a new server.

What must be recoverable

Build the recovery inventory per CA (offline root, policy CA, each issuing CA) and record where each item lives, how it is protected and who can retrieve it.

AssetWhy it mattersBackup method (AD CS example)Protection
CA private keyWithout it the CA cannot sign certificates or CRLs; a new key means a new CA certificate and re-trustHSM vendor backup mechanism, or certutil -backupkey / Backup-CARoleService -KeyOnly for software keys (password-protected .p12)Dual control, encrypted, offline, at an alternate site
CA certificate and chainNeeded to reinstall the role with existing keys and to republish to AIAIncluded in key backup; also copy all historical CA certificates after renewalsIntegrity; public, but keep the complete set
CA database and logsRecord of issued and revoked certificates; needed to produce correct CRLscertutil -backupdb or Backup-CARoleService -DatabaseOnly, full plus incrementalConfidential (contains requester data); immutable copy
CA configurationCDP and AIA URLs, validity periods, policy and exit modules, auditing settingsExport HKLM\SYSTEM\CurrentControlSet\Services\CertSvc\ConfigurationIntegrity; version control the export
Certificate templates (enterprise CA)Stored in Active Directory, not in the CA backupRecord the CA's published template list; protect AD backups; export template definitionsAD forest recovery plan
CRL and AIA publication pointsWhere relying parties fetch CRLs and CA certificatesDocument locations (record from pkiview); back up web server configuration and current CRL filesHigh availability, ideally two independent sites
OCSP respondersOnline status for clients that prefer OCSPResponder configuration, signing certificate enrolment settingsSeparate signing keys, renewable from the CA
Activation materialHSM smart cards, PINs, passwords for .p12 filesSplit across custodians; sealed and loggedStored separately from the key backups
DocumentationCP/CPS, ceremony scripts, restore runbook, custodian listOffline printed and digital copiesKept with the DR kit

Store the CA backup apart from general server backups. A file-level backup of a CA server that captures a software private key gives every backup operator a route to mint certificates, which is the persistence scenario covered in the AD CS Security Guide.

CA private keys and HSMs

The Baseline Requirements require publicly trusted CAs to hold private keys in modules validated to at least FIPS 140-2 or 140-3 Level 3 or an equivalent Common Criteria evaluation, and to protect keys outside the module with physical security, encryption or both. Private CAs are not bound by the Baseline Requirements, but the same model is the sensible default for any CA that issues authentication certificates.

How HSM key backup works

HSMs do not export a CA key in the clear. Depending on the product, the key is backed up as an encrypted blob that only modules in the same security domain can unwrap, cloned to a dedicated backup module, or included in an encrypted cluster backup. Whichever method your product uses, three things decide whether you can recover:

  • The backup itself: the encrypted key material or backup device.
  • The security domain or wrapping key: without it, the backup is unreadable. Losing it is equivalent to losing the key.
  • Quorum (M-of-N) activation material: the smart cards, tokens or credentials that authorise administrative operations, where M of the N holders must be present.

The HSM Deployment and Operations Guide covers HSM roles and backup mechanics in general. For CA recovery, the decisions are about quorum design and geography.

Choosing M and N

DesignStrengthRecovery riskSuits
2 of 3Dual control, simpleLosing two holders blocks recoverySmall teams, issuing CAs
3 of 5No single pair can act aloneTolerates two absent holdersMost enterprise roots
3 of 7 across two sitesRecovery possible from either siteMore custodians to maintain and replaceLarge organisations with a DR site
M = NMaximum controlAny single loss is fatalAvoid for CA keys
  • Spread custodians: by location and team, so one incident, resignation wave or travel ban cannot remove a quorum.
  • Keep the custodian register current: review it quarterly and re-issue cards when holders leave, following the Cryptographic Key Ceremony Template.
  • Store activation material and key backups separately: the Baseline Requirements list storing secure cryptographic devices and activation materials at an alternate location as a business continuity plan element.
  • Software keys: if a CA still uses a software key, protect the .p12 password under split knowledge and plan migration to an HSM; certutil -backupkey supports -ProtectTo to protect the PFX to named accounts.

CA databases and configuration

Microsoft's AD CS tooling offers two equivalent routes. Backup-CARoleService -Path backs up both database and key when neither switch is given, with -DatabaseOnly, -KeyOnly, -Incremental and -KeepLog options. certutil -backup, -backupdb and -backupkey do the same, with full backup and log truncation by default.

  1. Schedule database backups daily for issuing CAs (full weekly, incremental daily), and after every ceremony for offline CAs. Truncation by default is fine if backups are reliable; use KeepLog only where another product manages logs.
  2. Export the configuration registry key on every change and keep it in version control.
  3. Record the template list for each enterprise CA, because templates are stored in Active Directory and are not backed up with the CA.
  4. Copy the backup off the server to immutable storage that CA administrators cannot delete. See the Backup Security and Immutable Backup Guide.

Restore constraints to plan around

  • Order matters: Microsoft's procedure removes Certificate Services from the old server first, renames or disconnects it, installs the role on the new server choosing "Use existing keys", stops the service, imports the registry file, then restores key and database.
  • Name: the new server should have the same computer name; otherwise edit the CAServerName value in the exported registry file before import.
  • Paths: the database path should match the backup's original location, and %SystemRoot% should match.
  • Architecture: a 32-bit CA database cannot be restored onto a 64-bit operating system, or the reverse.
  • Templates: recreate the published template list manually after restore.
  • Old hostnames in CDPs: if issued certificates carry CRL paths with the old hostname, publish CRLs to both old and new paths.

This is why CDP and AIA URLs should use a service alias (for example a dedicated pki host name) rather than the CA server name: the restored CA can publish to the same URLs with no change to issued certificates.

CRL and OCSP continuity

A restored CA is only useful if relying parties keep accepting its certificates while you work. Every CRL carries a next update time; after it passes, clients that require fresh revocation data treat the status as unknown and, depending on the application, fail. See the Certificate Revocation Guide for client behaviour.

CA tierTypical CRL patternRecovery time budgetPlanning note
Offline rootLong validity, published at ceremoniesMonths, if ceremonies are scheduled well before expiryCalendar the next CRL signing ceremony with margin; a missed root CRL breaks the whole hierarchy
Policy or intermediate CA (offline)Long validity, published at ceremoniesWeeks to monthsSame discipline as the root
Issuing CA (online)Short base CRL, optional delta CRLsDaysThe remaining validity of the last published base CRL is your RTO ceiling
OCSP responderPre-signed responses with their own validityHours to daysResponder signing certificates must be renewable while the CA is down, or responders must fall back to CRLs

For publicly trusted CAs, the Baseline Requirements set floors: CAs issuing subscriber certificates must publish a new CRL at least every seven days if all certificates include an AIA OCSP pointer, or four days otherwise, and within 24 hours after a revocation; CAs issuing CA certificates must publish at least every twelve months. Private CAs choose their own values, which is the decision that matters for DR:

  • Set issuing CA base CRL validity longer than your realistic restore time, plus an overlap so the previous CRL is still valid when the next one is due.
  • Pre-sign an emergency CRL: before planned maintenance on an offline CA, or as a standing DR measure, sign a CRL with extended validity using certutil -CRL dd:hh and keep it ready to publish.
  • Keep publication independent of the CA: CDP web servers in two locations, with current CRL files backed up, so a CA outage does not also remove the last valid CRL.
  • Revocation during an outage: record revocation requests and apply them at restore, then publish immediately with certutil -CRL. Treat any revocation needed for compromise as a reason to accelerate restore.

Restore testing

The Baseline Requirements require publicly trusted CAs to test, review and update their business continuity and disaster recovery procedures annually, and to define recovery time objectives and the distance of recovery facilities from the main site. Use the same discipline for private PKI.

  1. Tabletop first: walk through loss of an issuing CA server, loss of an HSM, loss of a site and suspected key compromise. Confirm who holds quorum material and how long assembly takes.
  2. Isolated restore drill: restore the latest key and database backups into an isolated lab network with a lab HSM partition or a test CA. Never bring a restored copy of a production CA key online on the production network in parallel with the live CA.
  3. Validate output: confirm the restored CA starts, its certificate thumbprint matches, it signs a CRL that verifies against the CA certificate, the revoked serial numbers match production, and templates are present.
  4. Time it: record actual time from declaration to first signed CRL and compare with the CRL validity budget.
  5. Destroy lab copies of production key material under the same dual control, and log it.
  6. Update the runbook with every surprise, and repeat at least yearly and after hardware, OS or HSM firmware changes.

For key compromise rather than failure, recovery means a new key and new CA certificate, not a restore: use the CA Compromise and Mass Certificate Replacement Playbook.

Where identity fits

A private CA is the trust anchor for machine identities: device certificates, service mTLS certificates, smart card logon and VPN authentication all fail together when issuance and revocation stop. Count the dependent non-human identities when setting the CA's RTO, because a short outage of an issuing CA that serves workloads with 24-hour certificates is an application outage within a day. See the Machine Identity, PKI and Certificate Lifecycle Guide. The accounts and service identities that run backups of the CA are themselves high-value: restrict them, and keep them out of the CA's own administrator groups.

Detection and measurement

  • CRL freshness: monitor each CDP URL and alert when remaining CRL validity drops below a threshold (for example 50 percent of the period).
  • Backup success: alert on failed CA database and key backups, and on backup files that have not changed when they should.
  • Key backup access: log and alert on any retrieval of key backups or activation material from storage.
  • CA audit events: enable CA auditing and forward backup and restore events to the SIEM.

Metrics:

  1. Minimum remaining CRL validity across all CAs, tracked daily.
  2. Days since last successful restore drill, per CA.
  3. Measured restore time versus CRL validity budget.
  4. Quorum health: available custodians versus M, per HSM security domain.
  5. Percentage of CAs with all inventory items backed up in the last cycle.

Common failure patterns

  • Key backup without the wrapping key: HSM backups kept, security domain or quorum cards lost, so the backup is unreadable.
  • Root CRL expiry: the offline root's CRL lapses because the signing ceremony was forgotten, and every certificate in the hierarchy fails revocation checks at once.
  • Server-name CDPs: URLs tied to the CA host name force the restored CA to keep an old name or to publish in two places indefinitely.
  • Templates assumed in the backup: the CA restores but issues nothing, because the template list was never recorded.
  • Software key in general backups: a CA private key captured by file-level backup, giving backup operators an offline route to forge certificates (ATT&CK T1649 Steal or Forge Authentication Certificates and T1552.004 Private Keys).
  • Custodians who have left: the quorum exists on paper only.

Framework mapping

FrameworkReferenceRelevance
NIST SP 800-53 Rev. 5CP-9, CP-10System backup; recovery and reconstitution
NIST SP 800-53 Rev. 5SC-12, SC-17Key management, including availability; PKI certificates
NIST CSF 2.0PR.DS-11, RC.RP-01Backups created, protected and tested; recovery plan executed
NIST SP 800-57 Part 1 Rev. 5Section 8.2.2.1, Table 7Backup of CA private signing keys may be warranted, under owner control
CA/Browser Forum Baseline Requirements4.9.7, 5.2.2, 5.7.1.1, 6.2.7CRL frequency, dual control for key backup, BCP and DR plans, module validation
MITRE ATT&CKT1649, T1552.004Threats to backed-up CA keys

Practitioner checklist

  • Build the recovery inventory for every CA, including templates, publication points and activation material.
  • Back up HSM key material and the security domain, with quorum cards held at two sites.
  • Review the custodian register quarterly and keep at least M + 2 available holders.
  • Back up CA databases daily for online CAs and after every ceremony for offline CAs, to immutable storage.
  • Export the CertSvc configuration key on every change.
  • Use alias host names in CDP and AIA URLs.
  • Set issuing CA CRL validity longer than measured restore time, and calendar root CRL ceremonies with margin.
  • Monitor CRL freshness on every CDP URL.
  • Run an isolated restore drill at least yearly and record the time to first signed CRL.

Standards and references

Related NHI Mgmt Group resources: Enterprise PKI Design and CA Hierarchy Guide · HSM Deployment and Operations Guide · Certificate Revocation Guide · Business Continuity and Disaster Recovery Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.