Skip to content
INSIGHTS & GUIDES · NETCLOUD24

Protecting the complete identity of an AD CS certification authority

Protect CA keys, database, configuration and directory dependencies as one controlled recovery set, verify protected copies and isolated restoration, and distinguish ordinary recovery from migration and signing-key compromise.

Read the article ↓
Editorial illustration: How to Back Up an Active Directory Certificate Services CA

Platform: Windows Server 2019, 2022 and 2025, with the version and hosting restrictions described below.

Define the recovery objective before choosing backup files

A CA recovery must preserve the issuer’s identity and operational record. Rebuilding Windows and creating a new CA with the same name does not recover the old signing key, database or revocation state. Begin by documenting whether the objective is same-server repair, migration, disaster recovery or offline-root restoration, then identify the supported procedure and dependencies for that case.

Within a managed Netcloud24 PKI, authorised operators protect the CA and test the agreed recovery route. Customers should not be expected to collect signing keys themselves. The sensitive material needs controlled custody, separate recovery secrets and clear approval for use, because a backup can carry the power to issue trusted credentials.

Inventory the components that form the recovery set

Protect the CA database and logs, all required CA certificates and private keys, registry configuration, CAPolicy.inf and the enabled-template list for an enterprise CA. Template objects themselves reside in AD and need directory recovery protection; a CA database backup is not an AD template backup. Retain publication scripts, service accounts and the AIA/CDP endpoints required by existing certificates.

Record the CA common name, host name, OS build, key provider, database paths, certificate renewal history and relevant key containers. A renewed CA can require more than one certificate/key generation in the recovery inventory. Do not assume the newest visible certificate is the only identity needed to validate or operate the CA.

An HSM changes key backup mechanics. A non-exportable key is not made exportable by a generic PowerShell switch. Follow the provider’s protected backup, quorum and replacement procedure and ensure its operators are available during a recovery. A public .cer copy alone cannot restore a missing signing key.

Prepare a protected destination and a coordinated window

Use an approved backup location with sufficient capacity and restricted access. Keep at least one recoverable copy outside the production failure and compromise boundary. A folder on the same server is useful staging, but not sufficient protection against its loss or ransomware. Arrange secure transfer and retention separately.

Check CA health and pending operational work before the backup. Record the database state and recent publication versions. A backup taken during a deliberate migration or outage preparation can require additional issuance freeze, extended publication or service handling; follow that scenario’s procedure rather than assuming an ordinary daily backup completes a migration.

Get-Service CertSvc
certutil -getreg CA\DBDirectory
certutil -getreg CA\DBLogDirectory
Get-CATemplate
Get-Volume | Select-Object DriveLetter,SizeRemaining,Size

Use a delegated CA backup identity appropriate to the documented permissions. Broad domain-administration membership is not the normal solution to an unexplained backup error. Preserve the exact failure and check access before changing privileges.

Back up the CA with protected key credentials

The supported Backup-CARoleService command can create the CA-role backup set. Supply the private-key protection password as a SecureString through a protected prompt, and store its recovery custody separately from the resulting files. Choose the intended full backup rather than accidentally selecting only database or keys.

Import-Module ADCSAdministration
$backupLocation = 'F:\Protected-CA-Backup\ISSUE01-20261110'
$backupSecret = Read-Host 'Private-key backup protection password' -AsSecureString
Backup-CARoleService -Path $backupLocation -Password $backupSecret
Get-ChildItem -LiteralPath $backupLocation -Recurse |
  Select-Object FullName,Length,LastWriteTime

The path is illustrative and must be a verified approved destination. Inspect completion and errors; a created directory does not prove every required component arrived. Database-only and key-only parameter sets have different purposes and should not be described as complete recovery. Never print the secret or write it beside the backup for convenience.

Capture configuration and the enterprise issuance inventory

Export the CA registry branch through the approved administrative process, retain CAPolicy.inf if used and record the enabled templates. Protect those exports as sensitive configuration. Do not include unrelated registry trees or plaintext secrets in a broadly accessible support bundle.

reg.exe export 'HKLM\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration' `
  'F:\Protected-CA-Backup\ISSUE01-configuration.reg'
Get-CATemplate | Export-Clixml 'F:\Protected-CA-Backup\ISSUE01-templates.xml'
Get-Item (Join-Path $env:windir 'CAPolicy.inf') -ErrorAction SilentlyContinue

Check the native export exit result and confirm the expected CA branch. Preserve publication configuration and the actual hosted certificate/CRL content. A restored issuer may still fail clients if its old CDP hostname vanished during migration. Include ownership of the retrieval endpoints and transfer jobs in the recovery record.

Verify completeness without casually restoring production

Compare the backup content against the inventory, file sizes, timestamps and expected key/provider method. Use protected hashes or backup-system verification to detect handling errors. Those checks support integrity but cannot prove the CA will recover correctly. The meaningful test is a supported isolated restoration with the required identity, database and publication behaviour.

Design the test so a duplicate CA cannot issue or publish into production accidentally. Protect DNS, network and AD interaction appropriately. Verify that the recovered CA presents the expected identity and can perform the specific test operations under the documented process. Record what was actually exercised; a directory listing is not a restoration test.

Ensure the recovery team can obtain backup passwords, HSM material and required media through the approved custody process during an outage. A technically correct encrypted backup is unusable if the only person holding its secret is unavailable.

Understand restoration and migration constraints

CA restoration is not an opportunity to run two independently writable instances of the same issuer. Establish which instance is authoritative and prevent duplicate issuance or conflicting revocation publication. Use the documented migration order, supported OS path and key/database handling rather than a generic VM clone.

A stale database can omit later issuance or revocation records. Assess the recovery point and preserve newer evidence where available. Do not restore an older database merely to reverse a revocation decision. Keep existing CDP/AIA references working, and verify chain and revocation from representative clients after recovery.

For a compromised signing key, restoring a clean server does not automatically remove the trust consequences. Follow the PKI incident plan, which can require revocation, replacement and trust changes across relying systems. Backup and incident recovery are related but different decisions.

Operate backup as a continuing control

Monitor job completion and protected off-server transfer, retain versions according to policy and repeat isolated recovery after material CA, provider or OS changes. Capture template-list and configuration changes alongside the database schedule. Keep offline-root ceremonies and issuing-CA backups separately owned where their operating models differ.

If a backup was sent to the wrong location, secure that copy, assess exposure and repeat to the approved destination rather than treating deletion as proof of confidentiality. Document the final set, custody, recovery point and test evidence. The managed service needs a recoverable original CA identity and reliable revocation history, not simply a folder labelled PKI backup.

Further reading


Was this answer helpful?

« Back
Contact

Write to us

Do you have questions about our services or need a quote? Write to us and we will respond as soon as possible.

Contact form

Fields marked * are required.