Decommissioning the old internal CA safely

Retiring an internal certificate authority means stopping issuance, revoking what it still signs, keeping revocation and chain resources alive while outstanding certificates expire, then removing trust and archiving evidence. Microsoft's decommissioning guidance for a Windows enterprise CA sets out the order of these steps.

On this page

Why uninstalling an old CA is not the end of the work

Your old internal CA is being replaced, and the team has to retire it without breaking validation for certificates it already issued. The short answer is this: stop issuance and revoke active certificates first, keep the CRL and the AIA and CDP resources in place until the outstanding certificates expire, then remove trust. This matters most for teams running Windows enterprise CAs and similar internal PKIs, because uninstalling the role does not do any of those steps for you. Microsoft's decommissioning article, updated 18 February 2026, says that certificates the CA issued are typically still outstanding when it is uninstalled, and that validation of them will fail if clients process them. The sources supplied for this page cover Microsoft AD CS and HashiCorp Vault only, so other internal PKIs need their own vendor documentation checked.

The first practical step is to revoke every active certificate with the reason Cease of Operation in the Certification Authority snap-in, then raise the CRL publication interval so it exceeds the remaining lifetime of the revoked certificates, and publish a new CRL. Those steps are described in Microsoft's article, and the order matters: the CRL must be republished with the longer interval before the CA stops. Pending requests should be denied, and the service stopped with certutil -shutdown. Before deleting anything, record the database and log paths with certutil -getreg DBDirectory and certutil -getreg DBLogDirectory, and check the provider with certutil -getreg CA\CSP\Provider, so the evidence trail and any recovery work have the right locations. The article says uninstalling leaves the database, keys and certificates in place and the CA's CRL on the server by default, which means cleanup is a separate action from uninstalling.

The Microsoft decommissioning steps and the artifacts each one affects

This table lists the five steps in Microsoft's decommissioning article for a Windows enterprise CA, along with the key deletion command, and names the component each step touches. Read it top to bottom as the order of operations, and check each row against your own CA before you run it, because several steps leave artifacts in place on purpose.

StepAction in the Microsoft articleComponent touchedSource
Step 1Revoke all active certificates in the Certification Authority snap-in with the reason Cease of OperationIssued certificates and the CA databaseMicrosoft decommission enterprise CA
Step 2Increase the CRL publication interval to exceed the remaining lifetime of revoked certificatesCRL publication settings on the CAMicrosoft decommission enterprise CA
Step 3Publish a new CRLThe CA's CRL on the serverMicrosoft decommission enterprise CA
Step 4Deny any pending certificate requestsPending request queue in the CA databaseMicrosoft decommission enterprise CA
Step 5Stop the service with certutil -shutdown, then record paths with certutil -getreg DBDirectory and DBLogDirectory, and check the provider with certutil -getreg CA\CSP\ProviderCertificate Services service, database paths and key storage providerMicrosoft decommission enterprise CA
Key deletionDelete the CA private key with certutil -delkey, or certutil -CSP KSP -delkey for the Microsoft Software Key Storage Provider, once for each key if the CA has severalCA private keysMicrosoft decommission enterprise CA
Uninstall effectUninstalling leaves the database, keys, certificates and CRL in place by default, and removes only the pKIEnrollmentService object from Active DirectoryActive Directory enrollment object and the AIA and CDP objects, which the article says to keepMicrosoft decommission enterprise CA
Article dateArticle last updated 18 February 2026Version of the Microsoft guidance used for this tableMicrosoft decommission enterprise CA

What retiring the CA changes for the teams that run it

Retiring an enterprise CA does not end its effects at the moment the service stops. Issued certificates stay outstanding, clients still depend on the published objects, and several separate stores hold state that must each be handled on purpose.

Outstanding certificates still need validation

Uninstalling the CA leaves the certificates it already issued in circulation, and those certificates are typically still outstanding. If clients process them after the CA is gone, validation fails. Before you revoke anything, list which certificates remain active and which systems depend on them, then decide whether each one will be renewed elsewhere or allowed to lapse. Revoking all active certificates with the reason Cease of Operation, and extending the CRL publication interval beyond the remaining lifetime of revoked certificates, are the steps the Microsoft guidance describes to keep revocation status usable.

Microsoft decommission guide

Enrollment stops at the directory object

Uninstalling Certificate Services removes only the pKIEnrollmentService object from Active Directory. That removal is what stops clients from enrolling, so it is the point where new issuance ends. Confirm that every enrollment path, including auto-enrollment and any scripted requests, has a replacement CA or is retired before you remove the object. Pending requests should be denied first so that no request is left waiting on a service that will not return.

AIA and CDP objects must stay

The AIA and CDP objects in Active Directory are kept on purpose, because issued certificates are probably still outstanding. Clients use them to find issuing certificates and revocation lists while building a chain. Removing them early can break validation for certificates that are still in use. Treat them as part of the validation path and keep them until the last certificate that depends on them has expired or been replaced.

NtAuthCertificates and the CA database need separate removal

CA certificates published to NtAuthCertificates are a separate store that must be cleaned up on its own, and the first task requires Enterprise Administrator rights. The CA database is also kept after uninstall and must be removed by deleting the Certlog folder. Plan these as distinct changes with their own owners and evidence, because a missed entry in NtAuthCertificates can keep the old CA trusted for enrollment-related purposes after the service is gone.

Templates remain until every CA is gone

Certificate templates must not be deleted until all CAs in the forest have been removed. A template still points to the CAs that can issue from it, so deleting it early can disrupt any CA that still serves that template. Check every CA in the forest, not only the one being retired, before removing templates. Domain controller certificates that no longer validate can then be cleared with the dcinfo deleteBad command on a domain controller, followed by a policy refresh.

Private keys and trust stores

Uninstalling leaves the CA keys, certificates and CRL on the server by default, so key deletion is a deliberate step using certutil. If the CA uses several keys, each one must be removed. Trust distribution is also separate: roots deployed through Group Policy are not removed when the policy is unlinked, so confirm the trusted and disallowed lists on endpoints after the CA is retired. Record the key handling and the verification results as evidence.

How the revocation, CRL and key steps fit together

The order of operations in the Microsoft guidance for decommissioning an enterprise CA matters because each step protects clients from a different failure. Before the service is stopped, the administrator revokes every active certificate in the Certification Authority snap-in with the reason Cease of Operation. Revocation alone does not help clients that check a CRL, because a client only learns about the revocation from a list it can download. The article therefore extends the CRL publication interval beyond the remaining lifetime of the revoked certificates, so that the list stays valid for as long as any revoked certificate could still be presented, and then publishes a new CRL that carries the revocations. Reviewing the publication interval against the longest remaining certificate lifetime in your inventory is the check to make before you rely on this step.

Once issuance is stopped and the revocation list is published, the article stops the service with certutil -shutdown and records the database paths and the key provider. It then deletes the CA private key with certutil -delkey, or with certutil -CSP KSP -delkey when the key lives in the Microsoft Software Key Storage Provider. Deleting the key is what makes the CA unable to sign anything again, even by someone who recovers the server, so it is the point at which the old CA stops being an active trust anchor. If the CA has several keys, the article says to run key deletion for each one. Confirm the full list of keys and providers before you start, because a missed key remains usable.

Uninstalling Certificate Services does not clean up on its own. By default it leaves the CA database, keys, issued and root or intermediate certificates in their stores, and the CA's CRL on the server. Uninstalling removes only the pKIEnrollmentService object from Active Directory, which stops clients enrolling. The AIA and CDP objects stay in place because issued certificates are probably still outstanding, and the article warns against removing them while those certificates may still need processing. Plan the removal of stores, the NtAuthCertificates entries and the database as separate, checked actions after the uninstall, and keep records of what each one removed.

How the steps differ for a root CA, an issuing CA and a Vault mount

Use Microsoft's decommissioning article for a Windows enterprise CA running Active Directory Certificate Services. The article's sequence is to stop new issuance, revoke active certificates, publish a final certificate revocation list (CRL), stop the service and then remove the private key, database and directory objects. Uninstalling the role does not remove the database, keys, certificates or the CRL on the server by default, and it does not remove the AIA and CDP objects in Active Directory, which you should keep while issued certificates are still in use.

  • Revoke and republish: Revoke all active certificates with the reason Cease of Operation, raise the CRL publication interval beyond the remaining lifetime of the revoked certificates, then publish a new CRL.
  • Deny pending requests and stop the service: Deny any pending requests, then run certutil -shutdown and record the database paths with certutil -getreg DBDirectory and certutil -getreg DBLogDirectory.
  • Delete keys: Run certutil -delkey for each CA key, or certutil -CSP KSP -delkey for the Microsoft Software Key Storage Provider.
  • Remove directory and trust entries: Remove CA certificates from NtAuthCertificates with certutil -viewdelstore (Enterprise Administrator rights are needed), and delete the Certlog folder only after the database is archived.
  • Templates and domain controllers: Do not delete certificate templates until every CA in the forest is removed, then run certutil -dcinfo deleteBad on a domain controller and gpupdate /force.

Check that the revocation and CRL steps are complete before you stop the service, because a removed CA cannot publish revocation information afterward.

The order to retire an old CA safely

This sequence stops new issuance, revokes what is still outstanding, keeps revocation data available while certificates remain in use, and only then removes the CA's keys, database and trust. Each step produces a record or check that the next step depends on.

  1. Stop enrollment and deny pending requests

    Before anything else, the team removes the CA's enrollment point so clients stop requesting certificates from it, and then denies every request still waiting in the queue. Microsoft's decommissioning guidance treats this as the first move because a CA that keeps issuing makes every later step incomplete. Confirm it is done by checking that the pending request list is empty and that clients no longer find the CA when they enroll. Keep the list of denied requests as part of the decommissioning record.

  2. Revoke active certificates with cease of operation

    An administrator with CA management rights revokes every active certificate the CA has issued, using the Cease of Operation reason in the Certification Authority console. Uninstalling the CA does not revoke these certificates, and they are typically still outstanding, so validation will fail for any client that processes them. Confirm this step by checking that the revoked list contains every certificate that was active and that each entry shows the Cease of Operation reason.

  3. Extend the CRL interval and publish a new CRL

    The team raises the CRL publication interval so it runs longer than the remaining lifetime of the revoked certificates, then publishes a new CRL so the change takes effect. Without this, relying parties may stop checking revocation status before the revoked certificates expire. Confirm the step by checking the published CRL's next update value and confirming it covers the longest remaining lifetime among the revoked certificates.

  4. Stop the certificate service and record the database paths

    The team stops the Certificate Services process with certutil -shutdown, then records where the CA database and its log directory are stored using certutil -getreg. It also checks which key storage provider the CA uses with certutil -getreg CA\CSP\Provider, since the key deletion step depends on it. Confirm the step by saving the three values in the decommissioning record and verifying the service is no longer running.

  5. Delete the CA private key

    With the service stopped, the team deletes the CA's private key using certutil -delkey with the CA name, or certutil -CSP KSP -delkey when the Microsoft Software Key Storage Provider holds the key. If the CA has several keys, the command runs once per key. Confirm the step by checking that the key no longer appears in the key storage provider and by recording the key names and the date of deletion. Do this after the revocation and CRL steps, because a deleted key cannot sign a new CRL.

  6. Remove NTAuthCertificates entries and the Certlog database

    The team removes the old CA's certificates from the NTAuthCertificates object using certutil -viewdelstore with the LDAP path of that object, which requires Enterprise Administrator rights. It then deletes the Certlog folder to remove the CA database. Confirm the step by listing NTAuthCertificates and checking that no entry for the old CA remains, and by confirming the Certlog folder is gone. Keep a copy of the database in the archive before deleting it.

  7. Leave AIA and CDP objects while certificates are outstanding

    Uninstalling the CA removes only the enrollment service object from Active Directory, which stops clients enrolling. The AIA and CDP objects are kept, because issued certificates are probably still outstanding and clients may need them to build chains and check revocation. Remove these objects only after you confirm that no remaining certificate needs them. Confirm the step by checking that the AIA and CDP entries still resolve while certificates from the old CA are still in use.

  8. Clean up templates and domain controller certificates

    Certificate templates stay in place until every CA in the forest has been removed. After that, the team runs certutil -dcinfo deleteBad on a domain controller to remove domain controller certificates that no longer validate, then runs gpupdate /force to apply the change. Confirm the step by checking that no template still points to the retired CA and that the domain controller certificate report shows no invalid entries.

Decommissioning sequence from revocation to trust removal

The sequence starts with stopping issuance and revoking active certificates with the Cease of Operation reason, then publishing a CRL whose interval outlasts the remaining lifetime of revoked certificates. Next, the service is stopped and the CA private key is deleted, with the database paths recorded beforehand. Trust removal follows: NtAuthCertificates entries and the CA database are cleared, while the AIA and CDP objects stay in place as a decision point that depends on whether outstanding certificates still need to validate. Templates are kept until every CA in the forest is removed, and the last step is removing trust from distributed root stores.

Phases of retiring an internal CA, with the AIA and CDP removal decision shown.

What drives the effort of retiring an old CA

Retiring an internal CA is less a single step than a set of dependencies to find and close. The cards below cover what is still outstanding, what else in the forest relies on the CA, and how trust reaches the endpoints, so the team can scope the work before anything is switched off.

Outstanding certificates and their lifetimes

Certificates the CA issued are typically still outstanding when the CA is uninstalled, and validation of them fails once clients process them without the CA available. Count the issued certificates and read each remaining lifetime from the CA database before deciding how to revoke or replace them. Certificates with long remaining validity drive more of the work than those close to expiry. Check whether any of them protect services that cannot be re-issued quickly.

Microsoft decommission guide

CAs blocking template deletion

Certificate templates should not be deleted until all CAs in the forest are removed, so every CA in the forest must be listed before any template cleanup starts. A forest with several CAs, including ones that were never actively used, adds one removal and one verification pass per CA. Confirm which CAs publish the templates in use and plan the template removal as a final step.

Keys and storage providers

Each CA key sits in a storage provider, and the CA may hold more than one key. The key deletion must be run once per key, and the provider used by the CA determines which command applies. Record the database and log paths and the provider before the service stops, so the key and database removal can be completed and checked. Confirm whether any key is also held in a hardware security module or backup location outside the server.

Systems that read AIA and CDP objects

Uninstalling removes the enrollment object from Active Directory, which stops clients from enrolling, but the AIA and CDP objects are kept because outstanding certificates may still need them. Identify every system that fetches the issuing certificate or the revocation list through those paths, such as clients, firewalls and applications that validate outside the domain. Do not remove those objects while those systems still process the certificates.

Trust distribution through Group Policy or CTL

Roots may reach endpoints through Group Policy under the Trusted Root Certification Authorities store, or through certificate trust list auto-update. These two paths behave differently: the auto-update settings are applied by a GPO and are not removed when the GPO is unlinked. Confirm which method delivers each root, and inspect the trusted and disallowed lists on representative machines before removing any trust.

Trusted roots configuration

What to record so an auditor or customer can see the retirement was done

The retirement of an old internal CA is only visible to an auditor or customer if the steps leave a record. Start with the revocation log. Revoke all active certificates in the Certification Authority snap-in with the reason Cease of Operation, and keep the list of revoked serial numbers with that reason code. Then record the CRL publication interval change, the value before and after, and the date the new CRL was published. Microsoft's decommissioning guidance raises the interval so it exceeds the remaining lifetime of the revoked certificates, which is why the before and after values, and the time the new CRL was issued, show that relying parties were given a complete revocation picture. Confirm the exact interval and CRL values against your own CA configuration, since the sources do not give fixed numbers for your environment.

Next, record the database and provider details before anything is removed. Capture the output of certutil -getreg DBDirectory, certutil -getreg DBLogDirectory and certutil -getreg CA\CSP\Provider so the paths and provider used by the CA are on file. Keep a log of the certutil -shutdown step and of every key deletion command run, including certutil -delkey for each CA key, and certutil -CSP KSP -delkey where the Microsoft Software Key Storage Provider was used. Record the number of keys deleted, since the guidance says to run the command once per key when the CA holds several. Note that uninstalling Certificate Services leaves the database, keys and CRL in place by default, so the record should show when, and by whom, each of those artifacts was actually removed.

Finally, record the trust and directory changes and the date each step was completed. Log the removal of the CA certificate from NtAuthCertificates with certutil -viewdelstore against the LDAP path for CN=NtAuthCertificates, along with the Enterprise Administrator approval that the task requires, and the deletion of the Certlog folder. Record the certutil -dcinfo deleteBad run and the gpupdate /force that followed on each domain controller. For the detailed evidence pack and how it is organized, see the audit evidence page for a private PKI migration.

Common questions about retiring an internal certificate authority

Do the Microsoft decommissioning steps apply to non-Windows certificate authorities?

No. The steps described in Microsoft's decommissioning article apply to a Windows enterprise CA running Active Directory Certificate Services, and they use Windows tools such as certutil, the Certification Authority snap-in and Group Policy. A CA built on another platform, such as HashiCorp Vault, has its own procedure for stopping issuance, revoking outstanding certificates and removing trust. For those platforms, use the vendor's documentation as the starting point, and confirm each step against the product version you run. The principles still carry over: stop issuance, publish final revocation information, keep evidence, and remove trust deliberately.

What happens to certificates that are still outstanding when a CA is uninstalled?

They remain outstanding, and validation of them will fail when clients process them. Microsoft notes that uninstalling a CA typically leaves its issued certificates still in use. Before uninstalling, the article has you revoke all active certificates with the reason Cease of Operation, then raise the CRL publication interval so it exceeds the remaining lifetime of the revoked certificates, and publish a new CRL. This gives relying parties revocation information that stays valid for as long as the revoked certificates could still be presented. Plan a watch period for stragglers, since certificates issued before the shutdown can outlive the CA's service.

Can the AIA and CDP objects in Active Directory be deleted when the CA is removed?

Not if you expect to process the certificates the CA issued. Microsoft's article says uninstalling Certificate Services removes only the pKIEnrollmentService object from Active Directory, which stops clients from enrolling. It keeps the AIA and CDP objects because issued certificates are probably still outstanding, and it advises against removing them if those certificates will still be processed. Treat the AIA and CDP objects as something to retain until the last certificate from the CA has expired or been replaced. Confirm the retention period with your own certificate inventory before removing anything.

How do you remove a CA certificate from NtAuthCertificates?

Microsoft's article uses certutil -viewdelstore against the LDAP path of CN=NtAuthCertificates to remove the CA certificates published there. Running that task requires Enterprise Administrator rights. Remove the CA certificate only after you have confirmed that nothing still depends on it for smart card or domain authentication, because NtAuthCertificates governs which CAs can issue certificates used for logon. Record the change in your decommissioning evidence, including who ran it, when, and against which forest. Check the exact syntax against the certutil version on your domain controllers before running it in production.

Why must certificate templates stay in place until every CA is removed?

Certificate templates are shared across the forest, so deleting them while any CA still uses them can break enrollment and renewal for the CAs that remain. Microsoft advises not to delete certificate templates until all CAs in the forest have been removed. Once that condition is met, you can clean up templates that no longer serve a purpose. After the CA is gone, run certutil -dcinfo deleteBad on a domain controller to remove domain controller certificates that no longer validate, then run gpupdate /force. Keep a record of which templates you removed and why.

How do you remove trust for the old CA through Group Policy?

Trust is distributed through Group Policy under Computer Configuration, Policies, Windows Settings, Security Settings, Public Key Policies, Trusted Root Certification Authorities, which is also where roots are imported. Microsoft states that the CTL auto-update settings applied by GPO are not removed when the GPO is unlinked, so unlinking a policy does not by itself remove the trust. Use certutil -verifyCTL AuthRoot and certutil -verifyCTL Disallowed to inspect the trusted and untrusted lists, and confirm the old root is removed from the endpoints you manage. Remove trust only after you have re-issued the certificates that depended on it, and test on a representative set of clients before wider rollout.

What should you ask a vendor before retiring a CA?

Ask how the product stops issuance, how it revokes outstanding certificates, and how it publishes final revocation information such as CRLs. Ask where its database, keys and certificates are stored after uninstall, and which of them remain by default. Ask what the product removes from directories or trust stores, and what it leaves for you to remove, and whether any cleanup needs elevated rights. Ask how long published revocation information must be kept, and how to export records for audit. Also ask which documentation covers your exact version. The sources listed here cover Microsoft and HashiCorp products, so confirm the answers for any other vendor against its own documentation.

When to bring in outside help and what to bring to a scoping call

Retiring an old internal CA is routine work for a small, single-issuer setup, where the team can revoke, stop the service, remove the objects and archive the evidence in one planned window. Bring in outside help when the retirement is more complicated than that. The clearest signals are several CAs in one Active Directory forest, cross-signed or multi-issuer setups where a root or intermediate is trusted through more than one path, an unclear count of certificates still outstanding, and a requirement to produce written evidence of each step for an auditor or customer. Each of these makes the steps in this topic harder to get right on the first attempt, because the Microsoft article's sequence assumes you already know which certificates are still in use, which keys belong to which CA and where trust is distributed. Note that the Microsoft steps cover a Windows enterprise CA; if your estate includes other issuers, such as Vault PKI, the same questions still apply but the commands and controls differ, so confirm them against each product's documentation.

A scoping call goes faster if you arrive with the inputs already gathered. Bring a CA inventory listing every issuing and root CA, its role, where its database and keys are stored, and which CAs are cross-signed or chained to one another. Bring the key storage providers for each CA, including whether keys sit in the Microsoft Software Key Storage Provider, a hardware security module or another store, since the key-deletion step depends on the provider. Bring the Group Policy objects and the CTL configuration that distribute trusted roots and disallowed certificates, because removing trust is only complete when those settings no longer point at the old CA and the CTL update behavior is understood. Finally, bring the list of systems that process certificates, such as web servers, domain controllers, VPN gateways and devices that validate client certificates, so the team can see which ones may still depend on the old chain. Ask the consultant to confirm how they will verify that no outstanding certificate still validates against the retired CA before the trust is removed.

How DeployOpen helps plan and carry out an internal CA retirement

DeployOpen approaches the retirement of an old internal CA as a staged, documented change: first the written scope, then the revocation, shutdown and trust removal steps, then handover with evidence. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • We inventory what the old CA issued, including outstanding certificates, templates, enrollment services and dependent systems.
  • The written scope names which CA roles, keys, databases and trust stores are in and out of the retirement.
  • We confirm with your team which systems still depend on the old CA's issued certificates before any revocation begins.
  • Scope also states who signs off each stage, and what evidence will be delivered at the end.

How we build

  • We build a runbook that revokes active certificates, sets the CRL publication interval and publishes a final CRL, step by step.
  • We stop the CA service, record database and key provider paths, and document each command before it runs.
  • We remove CA keys, published NtAuthCertificates entries and leftover CA objects only after the dependency check passes.
  • We test the trust removal on a non-production copy and check that clients validate against the new chain.

How we hand over

  • We deliver the completed runbook with the actual values, commands and outputs recorded during the retirement.
  • We archive the CA database, certificates, CRLs and configuration records in a location your team controls.
  • We document which trust stores, Group Policy objects and CTL settings were changed, and how to verify them.
  • Handover includes a short walkthrough so your PKI staff can answer questions about the retired CA later.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the retirement is complete.
  • We can watch for straggler certificates and validation failures during the weeks after the CA is shut down.
  • A retainer can cover follow-up checks of trust stores and reissuance of any certificates that still depend on the old root.
  • Support scope and frequency are agreed in writing, with the quote following from that scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.