Contents
- This Is Not the ACME Article
- The Two-Tier Hierarchy and Why the Root Stays Powered Down
- Key Ceremony, HSMs, and the Root That Outlives Your Career
- Certificate Templates and Autoenrollment
- ESC1–ESC8: When Your PKI Becomes a Domain Escalation Path
- Revocation That Actually Works: CRL, Delta CRL, and OCSP
- Lifecycle: Issuance, Renewal, Inventory, Expiry Monitoring
- What You Actually Issue: 802.1X, VPN, LDAPS, SMB, Code Signing
- How Internal PKI Goes Wrong
- CA Renewal and Migration
- The Bottom Line
This Is Not the ACME Article
A mid-size manufacturer ran a two-tier Microsoft PKI for eleven years without incident. Then, on a Monday morning, roughly 1,400 laptops failed 802.1X authentication and dropped off the corporate wireless network simultaneously. Nothing had been patched. No certificate had expired. What had happened was that the issuing CA's CRL had reached its nextUpdate timestamp over the weekend, the scheduled publication job had been failing silently since a file-share permission change three weeks earlier, and the NPS servers were configured — correctly, per policy — to fail closed on a revocation check they could no longer complete.
That is the shape of internal PKI failure. It is almost never a cryptographic break. It is a stale file on a web server, a template with the wrong checkbox, or a subordinate CA that quietly expires eighteen months before the certificates it issued.
This article is deliberately not about public certificate automation. ACME, Let's Encrypt, HTTP-01 versus DNS-01, and 47-day public certificate lifetimes are covered separately in Automating SSL Certificate Management. The distinction matters operationally: a public CA proves domain control to strangers and is trusted because browsers ship its root. An internal CA proves organizational identity to your own systems and is trusted only because you pushed its root into a trust store yourself. That single difference is why internal PKI carries responsibilities a public CA handles for you — you own the root key, you own revocation infrastructure, you own the trust store distribution, and you own the twenty-year timeline.
The Two-Tier Hierarchy and Why the Root Stays Powered Down
The standard enterprise design is two tiers: one offline root CA, and one or more online issuing (subordinate) CAs. Three-tier designs — root, policy CA, issuing CA — exist and are appropriate when you need to segregate issuance policy across business units, subsidiaries, or classification levels, but for most organizations the middle tier adds a second offline ceremony and a second expiry to track in exchange for policy separation nobody uses.
The root CA does exactly two things across its lifetime: it signs the subordinate CA certificates, and it periodically signs a CRL. Between those events, it should be powered off. Not "hardened," not "firewalled" — off, with the disk encrypted, in a safe, with tamper-evident seals and a two-person access log.
The reason is blunt: a root CA private key is the only thing in your environment with no recovery path. If a domain controller is compromised, you rebuild the forest — painful, bounded, well-documented. If a root CA key is compromised, every certificate in the organization is worthless, every trust store on every device must be updated, and every issued certificate must be reissued from a new hierarchy. There is no revocation for a root; the root signs its own certificate, so revoking it is meaningless to anything that already trusts it.
An offline root is typically a standalone (non-domain-joined) CA installed on a small VM whose virtual disk lives on encrypted removable media, or on a physical machine with no NIC. Standalone matters: an Enterprise CA is domain-integrated by definition and publishes to Active Directory, which means it must be domain-joined, which means it must be online. The root is standalone; the issuing CAs are Enterprise.
Note: "Offline" means the machine is genuinely powered down between ceremonies. A root CA VM that sits suspended on the same production cluster as everything else, reachable by anyone with vCenter access, is an online root wearing a costume. If a hypervisor administrator can clone the VM, they have the root key.
Issuing CAs are the workhorses. Deploy at least two if certificate issuance is on the critical path for authentication — they are independent CAs, not a cluster, so each has its own key pair and its own CRL, and clients simply enroll against whichever is available. Two issuing CAs also give you a migration path: you can stand up a replacement, migrate templates, and decommission the old one without a flag-day cutover.
Validity roughly halves at each tier: a 20-year root that stays powered off between signing ceremonies, 10-year issuing CAs doing the daily work in redundant pairs, and 1–2 year leaf certificates for everything endpoints actually use. Either issuing CA can issue any leaf type — they're independent, not a cluster.
Key Ceremony, HSMs, and the Root That Outlives Your Career
The key ceremony is the documented, witnessed process of generating the root key pair. At minimum it should include: a written script agreed in advance, at least two participants plus an independent observer, a video or signed paper record, verification that the build media is clean, and a recorded hash of the resulting root certificate. Organizations under audit — payment card, defence, healthcare — will be asked for this artifact years later, and reconstructing it after the fact is not an option.
Key storage is the fork in the road. Software key storage using the Microsoft Software Key Storage Provider is free and adequate for a genuinely offline root whose disk is encrypted and physically controlled. A hardware security module raises the bar: the private key is generated inside the device, is non-exportable by construction, and operations require quorum authentication (typically m-of-n smart cards). FIPS 140-3 validated modules are effectively mandatory in federal and regulated contexts.[1]
Practical HSM options span a wide cost range: network-attached appliances such as Thales Luna and Entrust nShield Connect (paired units, five figures and up, and the option most organizations choose for issuing CAs at scale), PCIe cards for a single CA, USB-form modules such as nShield Edge or YubiHSM 2 for offline roots where throughput is irrelevant, and cloud-managed dedicated HSMs. For an offline root that signs a subordinate certificate twice a decade and a CRL twice a year, a small USB HSM delivers nearly all of the assurance at a fraction of the cost.
Rule of Thumb: A root-key compromise has the widest impact: replacing it means distributing a new trust anchor and migrating the entire hierarchy. An issuing-CA compromise is narrower because the intact root can revoke that CA certificate, sign a replacement, and let you reissue only the certificates beneath it. But impact is not the only factor in HSM placement. The offline root is used a few times a year; an online issuer accepts requests every day and is much more exposed. A sound design protects both. If budget forces a choice, document the tradeoff instead of relying on a slogan: the root carries the larger consequence, while the issuer usually carries the larger likelihood.
Validity and key strength planning is where teams routinely underestimate the timeline. The arithmetic is fixed: a CA cannot issue a certificate valid beyond its own notAfter. Windows silently truncates the requested validity to the CA's remaining lifetime, which is how you end up with three-month workstation certificates nobody asked for. The conventional layout roughly halves at each tier — a 20-year root, 10-year issuing CAs, and 1–2 year leaf certificates — and the issuing CA is renewed at its halfway point so it always has more life remaining than the longest certificate it issues.
Public TLS lifetimes are already shrinking. The CA/Browser Forum schedule sets maximum validity at 200 days from March 15, 2026, 100 days from March 15, 2027, and 47 days from March 15, 2029.[9] The ballot is about Web PKI agility, fresher validation, and reducing the useful life of misissued or compromised certificates; it does not govern private PKI and it does not identify quantum computing as the main driver. Quantum migration is a separate reason to inventory algorithms and avoid building a private hierarchy that cannot change them.[10]
NIST SP 800-57 Part 1 Rev. 5 puts RSA-2048 at approximately 112 bits of security strength, which is deprecated for protecting new information beyond 2030; 128-bit strength requires RSA-3072 or ECC P-256.[2] A root created today with a 20-year validity will still be in service in 2046. Sizing that root at RSA-2048 is signing up for a hierarchy rebuild a decade before the certificate expires. Use RSA-4096 or ECDSA P-384 for the root, RSA-3072 or P-256 for issuers, and accept the compatibility testing — legacy load balancers, older embedded management controllers, and some network appliances still choke on ECDSA chains or on 4096-bit RSA in constrained handshakes.
The person who signs the root certificate is very unlikely to be the person who retires it. Document accordingly.
Which means the ceremony documentation is not compliance theatre. Write down where the HSM cards are, who holds them, what the quorum is, how to rebuild the offline root machine, and what the CRL publication schedule is — then store that document somewhere that survives a team reorganisation. The most common cause of an emergency PKI rebuild is not compromise. It is that nobody remaining at the company knows how to boot the root.
Certificate Templates and Autoenrollment
In AD Certificate Services, a certificate template is an Active Directory object that defines everything about a class of certificate: subject naming, key size and algorithm, permitted EKUs, validity period, renewal window, whether the private key is exportable, whether issuance requires manager approval, and — critically — who is allowed to enroll.[3] Templates live in the configuration naming context and replicate forest-wide, so a template change is a forest-wide change.
Never modify a built-in template. Duplicate it, rename it with a convention that identifies the owner and purpose (SWH-Workstation-Auth-v2), and publish the copy. Built-in templates are reset by schema upgrades and are used by roles you have not inventoried yet.
Template versions matter more than they look. Version 1 templates are legacy and cannot be edited. Version 2 supports autoenrollment. Version 3 adds CNG and thus ECC and key attestation. Version 4 adds the ability to require a specific cryptographic provider and to renew with the existing key. Use version 3 or 4 for anything new; version 2 exists for compatibility with clients that no longer exist in most estates.
Autoenrollment is the feature that makes internal PKI scale. Configure it in Group Policy under Computer (or User) Configuration → Policies → Windows Settings → Security Settings → Public Key Policies → Certificate Services Client – Auto-Enrollment, enable "Renew expired certificates, update pending certificates, and remove revoked certificates" and "Update certificates that use certificate templates." Grant the target security group Read, Enroll, and Autoenroll on the template. Clients then request, renew, and replace certificates with no ticket, no human, and no calendar.
Two permission rules prevent most of the trouble that follows:
- Enrollment permissions go to specific security groups — never to Domain Users, Domain Computers, Authenticated Users, or Everyone on any template that produces an authentication certificate.
- Write, Full Control, and WriteDacl on template objects belong to a small, named PKI administration group. Anyone who can edit a template can grant themselves an authentication certificate for any identity.
Since Microsoft's May 2022 update (KB5014754), certificate-based authentication against domain controllers moved toward strong certificate mapping, in which the issued certificate carries the account's SID in the szOID_NTDS_CA_SECURITY_EXT extension (OID 1.3.6.1.4.1.311.25.2) rather than relying on implicit name mapping.[4] If you are still running domain controllers in compatibility mode with weak mapping permitted, you have an open escalation path and a hard deadline you have already passed. Audit for Event IDs 39, 40, and 41 on domain controllers to find the certificates that will break when enforcement is turned on, and fix them before you flip the switch — not after.
ESC1–ESC8: When Your PKI Becomes a Domain Escalation Path
In 2021, SpecterOps published Certified Pre-Owned, which catalogued a family of AD CS misconfigurations — labelled ESC1 through ESC8 — that convert ordinary domain user access into domain administrator.[5] The research landed hard because the misconfigurations were not exotic. They were defaults, or the natural result of an administrator making enrollment "just work."
The mechanism in the most common case, ESC1, is a single template that combines four properties: an authentication EKU such as Client Authentication, "Supply in the request" for subject name, enrollment rights granted to a broad group, and no manager approval. Any user who can enroll can then request a certificate naming someone else — for instance, a domain administrator — and authenticate as them. No password, no hash, no exploit code in the classical sense. The CA does exactly what it was configured to do.
The rest of the family follows the same theme:
- ESC2/ESC3: templates with the Any Purpose EKU, no EKU at all, or the Certificate Request Agent EKU, allowing a certificate to be requested on behalf of another principal.
- ESC4: weak DACLs on the template object itself — if you can write to a template, you can turn it into an ESC1 template and then use it.
- ESC5: weak permissions on the surrounding AD objects (the CA computer account, the PKI containers), which amount to control of the hierarchy.
- ESC6: the EDITF_ATTRIBUTESUBJECTALTNAME2 flag set on the CA, which lets a requester attach an arbitrary SAN to any template, turning every template into ESC1.
- ESC7: excessive CA-level rights (ManageCA / ManageCertificates), which permit setting that flag or approving pending requests.
- ESC8: the HTTP-based web enrollment endpoint accepting NTLM, enabling relay of a coerced domain controller authentication into a certificate for that DC.
Add CVE-2022-26923 to the list: a patched but still widely encountered flaw in which a low-privileged user could modify a machine account's dNSHostName and obtain a certificate impersonating a domain controller.[6]
Note: Certipy and PSPKIAudit both enumerate these conditions in minutes. Run one against your own environment before someone else does. If you have never audited templates for ESC1, assume you have at least one — the pattern arises naturally whenever an administrator adds "Supply in the request" to make a certificate work for an appliance.
Remediation is unglamorous and effective: remove "Supply in the request" from every template that has an authentication EKU unless manager approval is also required; scope enrollment permissions to named groups; clear EDITF_ATTRIBUTESUBJECTALTNAME2; require Extended Protection for Authentication and disable NTLM on any web enrollment endpoint, or remove web enrollment entirely; and treat CA administrative rights as tier-0, equivalent to Domain Admin, because functionally that is what they are.
Revocation That Actually Works: CRL, Delta CRL, and OCSP
Revocation is the part of PKI that most often causes the outage rather than preventing the breach. The base CRL is a signed list of revoked serial numbers with a thisUpdate and nextUpdate timestamp, defined in RFC 5280.[7] Once the current time passes nextUpdate, the CRL is invalid — not stale, invalid — and a validator configured to require revocation checking will reject every certificate under that CA.
Delta CRLs carry only the changes since the last base CRL, so they can be published far more frequently at a fraction of the size. OCSP answers a single question about a single certificate over HTTP, which is why it is the only option that scales to large revocation lists without shipping megabytes to every client.[8]
| Property | Base CRL | Delta CRL | OCSP |
|---|---|---|---|
| Typical publication interval | 1 week (offline root: 6–12 months) | 1 day or less | Continuous; responder signs per request |
| Freshness of answer | Poor — up to the full interval | Good — hours | Best — minutes, bounded by responder cache |
| Client bandwidth | Whole list, grows with revocations | Base once, then small deltas | ~1–2 KB per query |
| Server load | Minimal — static file on a web server | Minimal — static file | Signing load per request; needs HA and caching |
| Client-side caching | Cached until nextUpdate | Cached until delta nextUpdate | Cached per response validity |
| Failure behaviour if unreachable | Hard fail once cache expires — auth stops | Falls back to base CRL if base is valid | Depends on client: soft-fail (accept) or hard-fail |
| Blast radius of an outage | Entire CA, delayed until cache expiry | Low if base CRL is current | Immediate for hard-fail clients |
| Best fit | Offline root; small estates | Issuing CAs with moderate revocation volume | 802.1X, VPN, high-volume or latency-sensitive validation |
The CDP (CRL Distribution Point) and AIA (Authority Information Access) extensions are stamped into every certificate at issuance and cannot be changed afterwards. Get them wrong and you must reissue everything. Three rules:
- Publish over HTTP, not LDAP, as the first listed URL. HTTP works for non-domain devices, network appliances, Linux hosts, and machines outside the forest; LDAP does not. Keep LDAP as a secondary entry only if you have domain clients that benefit from it.
- Use a DNS alias you control and will never need to change — http://pki.example.com/crl/ — pointing at a load-balanced or CDN-fronted static file host. Never point CDP at the CA server's own hostname; you have then coupled certificate validation availability to a machine you will eventually want to rebuild.
- The root's CRL must be published to the same infrastructure. An offline root that issues a 6-month CRL still needs a calendar reminder and a documented procedure, or you will discover the gap when the whole hierarchy fails validation.
Windows chain-building applies timeouts to revocation retrieval, tunable through ChainUrlRetrievalTimeout and ChainRevAccumulativeUrlRetrievalTimeout. A slow or blackholed certificate distribution point can stall validation before it fails. A firewall rule that silently drops traffic to the CRL host therefore causes a slower failure than one that rejects the connection immediately. Measure the defaults on the Windows versions you operate before setting an alert threshold.
:: --- CA health and CRL state --- certutil -CAInfo :: CA name, certs, signature algorithm certutil -CAInfo crl :: current CRL publication status certutil -getreg CA\CRLPeriod :: base CRL interval (units + period) certutil -getreg CA\CRLDeltaPeriod :: delta CRL interval certutil -getreg CA\CRLOverlapPeriod :: publication overlap window certutil -getreg CA\CRLPublicationURLs :: Force a fresh base + delta CRL now certutil -CRL :: Check the CA's own policy flags (ESC6 lives here) certutil -getreg policy\EditFlags :: Look for EDITF_ATTRIBUTESUBJECTALTNAME2 in the output — it should NOT be set :: Validate a certificate end to end, actually fetching CDP/AIA over the wire certutil -verify -urlfetch server.cer > verify.txt :: Every URL in the report must show "Verified"; any "Failed" is an outage waiting :: Enumerate published templates and their permissions certutil -template | findstr /i "TemplatePropCommonName" :: Find certificates expiring in the next 60 days on this CA certutil -view -restrict "NotAfter<=now+60:00,Disposition=20" ^ -out "RequestID,CommonName,NotAfter,CertificateTemplate" > expiring.csv
On non-Windows hosts — and for anything a network appliance presents — OpenSSL is the faster way to answer "what is actually in this certificate and does the chain build."
# What is really in the certificate: SAN, EKU, CDP, AIA, key size openssl x509 -in server.crt -noout -text \ | sed -n '/Subject:/,/Signature Algorithm/p' # Just the fields that break things openssl x509 -in server.crt -noout -subject -issuer -dates -ext subjectAltName,extendedKeyUsage,crlDistributionPoints,authorityInfoAccess # Chain verification against your internal root + issuing CA cat issuing-ca.crt root-ca.crt > chain.pem openssl verify -CAfile chain.pem -purpose sslserver server.crt # Is the CRL still valid? Compare nextUpdate to now curl -sO http://pki.example.com/crl/SWH-Issuing-CA01.crl openssl crl -inform DER -in SWH-Issuing-CA01.crl -noout -lastupdate -nextupdate # Live OCSP query against the responder named in the certificate openssl ocsp -issuer issuing-ca.crt -cert server.crt -text \ -url http://pki.example.com/ocsp -header "HOST=pki.example.com" # Does the deployed service present the full chain? (a very common misconfiguration) openssl s_client -connect app.internal.example.com:443 -showcerts < /dev/null
Lifecycle: Issuance, Renewal, Inventory, Expiry Monitoring
Autoenrollment covers domain-joined Windows. It covers nothing else — and "everything else" is where the outages live: load balancers, storage arrays, hypervisor management interfaces, out-of-band controllers, Linux servers, industrial controllers, the badge system, the appliance a vendor installed in 2019.
Build the inventory before you build the monitoring, because you cannot alert on what you have not enumerated. Three sources cover most of it: the CA database itself (certutil -view, or the PSPKI PowerShell module's Get-IssuedRequest), a network sweep of TLS endpoints, and Certificate Transparency logs for any name that also has a public certificate. Reconcile the three; the gaps between them are the certificates nobody owns.
Rule of Thumb: Alert at 30 days, escalate at 14, page at 7 — and require every certificate record to carry an owning team, not an individual. An unowned certificate is an unmonitored certificate; the person who requested it in 2021 has since changed roles.
For renewal, prefer renewal with a new key pair rather than reusing the existing one. Reusing the key means a compromise that predates renewal is never actually remediated. Version 4 templates make this explicit, and the small extra cost is worth it everywhere except where a device has a hardware-bound key.
Set the template renewal period sensibly relative to validity: a 1-year certificate with a 6-week renewal window gives autoenrollment six weeks of daily attempts to succeed before anything breaks. A 2-day renewal window on a laptop that is off for a fortnight is a support ticket with extra steps.
What You Actually Issue: 802.1X, VPN, LDAPS, SMB, Code Signing
802.1X machine and user authentication. The highest-value use of an internal PKI and the least tolerant of revocation failure. EAP-TLS with machine certificates has the device prove its identity with a private key it never transmits, instead of with a shared wireless passphrase (a PSK, known by every device on the network) or an MSCHAPv2 exchange derived from a user's password. That removes the reusable secret an attacker could capture off the air, crack offline, or read out of a departing employee's laptop, and it removes it from both the wireless and the wired network access control path. Configure NPS or your RADIUS platform deliberately regarding revocation behaviour — IgnoreNoRevocationCheck and its siblings determine whether an unreachable CDP means "deny everyone" or "accept unchecked." Both answers are defensible; the indefensible position is not knowing which one is configured.
VPN. Certificate authentication for IKEv2 or SSL VPN, ideally combined with a device certificate for machine identity and a separate user credential. Watch the EKU requirements: many VPN concentrators require Client Authentication (1.3.6.1.5.5.7.3.2) plus, for IKEv2, IP security IKE intermediate (1.3.6.1.5.5.8.2.2).
LDAPS and SMB. Domain controllers need Server Authentication certificates with the DC's FQDN in the SAN for LDAP over TLS, and Microsoft has been steadily raising the floor on LDAP channel binding and signing.[3] The Kerberos Authentication template supersedes the older Domain Controller and Domain Controller Authentication templates; deploy it and let autoenrollment replace the legacy ones rather than hand-issuing.
Internal TLS. Every internal web console, API, and management interface. This is where teams are tempted to issue 10-year wildcard certificates with exportable keys to avoid the operational burden. Resist — an exportable wildcard private key on a share drive is a single credential covering your entire namespace, with no revocation practice to remove it.
Code signing. Internal PowerShell and application signing lets you run AllSigned execution policy and WDAC publisher rules meaningfully. Code signing certificates should require manager approval, use non-exportable hardware-backed keys, and have a validity of one year or less. Anything signed by an internal code signing certificate is implicitly trusted by every endpoint — treat the template as tier-0.
How Internal PKI Goes Wrong
Five failure modes account for the overwhelming majority of internal PKI incidents. Each has a cheap, boring control that prevents it.
1. An expired CRL takes down authentication. The scenario in the opening paragraph. The CA is healthy, no certificate has expired, but the published CRL passed its nextUpdate and every hard-fail validator now rejects the entire hierarchy. The failure is delayed and therefore confusing — clients continue working off cached CRLs for hours or days after publication actually stopped, so the outage begins long after the change that caused it. Control: synthetic monitoring that fetches the CRL from the same URL a client uses and alerts when nextUpdate is less than 24 hours away, plus a longer CRLOverlapPeriod — the setting that decides how far ahead of the current CRL's expiry the CA publishes the replacement. Widen it and a publication job can fail several times running while clients are still holding a valid list, leaving time to notice and fix it; at the default there is barely any gap between the last successful publication and the outage.
2. The root CA private key lives on a domain-joined VM. Someone built the root as an Enterprise CA on the production cluster because standing up an offline standalone machine was inconvenient. Now the root key is exposed to every domain administrator, every hypervisor administrator, every backup operator with access to the VM's disk images, and any attacker who reaches any of them. There is no revocation remedy — a compromised root means a new hierarchy and a full reissuance. Control: build the root standalone and offline on day one. Retrofitting is a hierarchy migration, which is why it never happens.
3. A vulnerable template turns PKI into privilege escalation. ESC1 in the wild: a template with Client Authentication, "Supply in the request," and Domain Users enrollment, created three years ago so an appliance could enroll. Every domain user can now request a certificate as any identity in the forest. This is not theoretical — it is one of the most reliably productive findings in internal penetration tests since 2021.[5] Control: a scheduled template audit, and change control on the template objects with the same weight as a change to Domain Admins membership.
4. No inventory, so expiry is discovered by outage. There is no list of what has been issued to non-domain systems, so the storage array's management certificate, the load balancer's client certificate, and the SAML signing certificate all expire without warning. Each is discovered by the failure it causes, at whatever hour it happens. Control: reconcile the CA database against a network sweep quarterly, assign an owning team to every record, and alert on the record — not on the device.
5. A subordinate CA expires before the certificates it issued. A 5-year issuing CA that was never renewed reaches year 4 and begins issuing certificates truncated to less than 12 months, which nobody notices. At year 5 it stops issuing entirely and — worse — every certificate it already issued fails chain validation, because the issuer's own certificate has expired. Renewing the CA at that point is an emergency, and if the offline root's HSM cards cannot be located, it is a very long emergency. Control: monitor the CA certificates themselves with a 12-month lead time, and renew each issuing CA at its halfway mark as a scheduled, rehearsed activity.
Note: Notice what is absent from this list: cryptographic attacks, forged signatures, hash collisions. Internal PKI does not fail because the mathematics failed. It fails because a scheduled task stopped, a checkbox was ticked, or a date passed unobserved.
CA Renewal and Migration
Renewing a CA certificate has two variants and the choice has consequences. Renewing with the same key keeps the existing CRLs valid for previously issued certificates and avoids proliferating CA versions — but it extends the life of a key that has now been in use for years. Renewing with a new key is cleaner cryptographically and mandatory if you are changing key size or algorithm, but the CA begins maintaining a second CRL series (the "(1)" suffix you see in AD CS file names), and both must remain published for as long as certificates from the old key remain valid.
The usual guidance: renew with the same key at the first halfway point, renew with a new key at the second, so key material is rotated roughly every full validity period without doubling CRL maintenance every cycle.
Migration between CA servers — an operating system upgrade, hardware refresh, or moving from software keys to an HSM — follows the documented backup and restore path: back up the CA key and database with certutil -backup, export the registry hive under HKLM\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration, install the role on the new host, restore, and reconcile.[3] Two details cause most migration pain: the CDP and AIA URLs baked into already-issued certificates must remain reachable regardless of which server is live, which is why the DNS-alias rule earlier matters; and the CA's own computer account permissions in AD must be updated if the hostname changes.
For a hierarchy change — new root, new algorithms, remediating a compromised or badly designed original — plan on cross-signing or a parallel run rather than a cutover. Stand up the new hierarchy, distribute the new root to trust stores, migrate templates, move enrollment one class of certificate at a time, and only decommission the old issuing CA once its last issued certificate has expired. Its CRL must remain published until then. Budget a year; the constraint is the longest certificate lifetime you issued, not how fast you can build.
Rule of Thumb: The earliest you can retire an old CA is the expiry date of the longest-lived certificate it ever issued. Before you approve a 5-year certificate, understand that you are also approving a 5-year commitment to keeping that CA's revocation infrastructure online.
The Bottom Line
Internal PKI is not hard cryptography. It is a long-horizon operations problem wearing cryptographic clothing, and the disciplines that make it work are the same ones that make anything else work: an inventory, monitoring on the things that expire, least privilege on the things that grant identity, and documentation that outlives the people who wrote it.
A common enterprise design uses a standalone offline root and one or more online issuing CAs. Protect both root and issuer keys according to their consequence and exposure, select algorithms and validity periods from current policy and client requirements, and rehearse CA renewal before it is due. Duplicate templates rather than editing built-ins, scope enrollment to named groups, and do not combine "Supply in the request" with an authentication EKU unless a separately enforced control validates the requested identity. Publish CDP and AIA over durable HTTP names, monitor CRL freshness from a client's perspective, and audit AD CS for known escalation paths.
And if you are not building one — if the requirement is really just TLS on public-facing services — do not build one. A public CA with ACME automation is less work, better monitored, and has no root key you can lose. Internal PKI earns its cost when you need machine identity for 802.1X, VPN, mutual TLS, and code signing across systems no public CA will ever vouch for. That is a real need, and it justifies real infrastructure. What it does not justify is a root CA on a domain-joined VM and a CRL nobody watches.
References
- NIST — "Security Requirements for Cryptographic Modules." FIPS 140-3, March 2019. csrc.nist.gov.
- Barker, E. — "Recommendation for Key Management: Part 1 – General." NIST Special Publication 800-57 Part 1 Revision 5, May 2020. csrc.nist.gov.
- Microsoft — "Active Directory Certificate Services: certificate templates, CA administration, backup and migration." Microsoft Learn. learn.microsoft.com.
- Microsoft — "KB5014754: Certificate-based authentication changes on Windows domain controllers." Microsoft Support, May 2022 (updated since). support.microsoft.com.
- Schroeder, W. and Christensen, L. — "Certified Pre-Owned: Abusing Active Directory Certificate Services." SpecterOps, June 2021. specterops.io.
- MITRE / Microsoft — "CVE-2022-26923: Active Directory Domain Services Elevation of Privilege Vulnerability." MSRC, May 2022. msrc.microsoft.com.
- Cooper, D. et al. — "Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile." RFC 5280, IETF, May 2008. datatracker.ietf.org.
- Santesson, S. et al. — "X.509 Internet Public Key Infrastructure Online Certificate Status Protocol – OCSP." RFC 6960, IETF, June 2013. datatracker.ietf.org.
- CA/Browser Forum — "Ballot SC-081v3: Introduce Schedule of Reducing Validity and Data Reuse Periods." Passed April 2025. cabforum.org.
- PostQuantum.com — "What Is Trust Now, Forge Later (TNFL)?" Explains how a future quantum computer could derive a certificate's private key from its public key and forge signatures retroactively. postquantum.com.