“We can just put the private CA on the domain controller for now, right?”
“The servers behind the ALB are still on self-signed certificates, but they work, so it’s fine.”
Private PKI and certificates in the cloud have pitfalls that differ from public CAs. With a private CA, a single wrong setting can let an ordinary user become a domain admin, which makes it the entry point of an attack, and some cloud load balancers do not verify certificates at all.
In Part 8 we looked at automation with ACME. Part 9 covers designing and protecting private PKI (AD CS), cloud certificate services (ACM, Private CA, Azure), TLS termination at load balancers, and vSphere certificates.
- AD CS design: two tiers
- Where to publish CRLs and AIA, and validity periods
- Why not to put an issuing CA on a DC
- Certificate templates and auto-enrollment
- AD CS vulnerabilities (ESC1 to ESC8 and others)
- Certifried and strong certificate mapping
- Operating AD CS safely, and Windows Server 2025
- ACM (AWS Certificate Manager)
- AWS Private CA and the Azure equivalents
- TLS termination and re-encryption at load balancers
- How vSphere certificates work
- Think about it
- Summary
- The Certificate Fundamentals series (11 parts)
AD CS design: two tiers
The basic form when building private PKI with AD CS (Active Directory Certificate Services) is a two-tier structure of an offline root CA and an online issuing CA.

- Root CA: Build it as a standalone CA that is not joined to the domain, and after it signs the issuing CA’s certificate, power it off and store it. If the root CA’s private key leaks, every certificate in the organization can no longer be trusted, and you have to rebuild and redistribute to every device
- Issuing CA: Let a domain-joined enterprise CA handle day-to-day issuance. An enterprise CA integrates with AD and can use certificate templates and auto-enrollment
A single-tier structure in which the root CA issues directly is convenient, but it keeps the root key on the network at all times, so it is for test environments. A three-tier structure is an option for large organizations that want separate policies by site or purpose.
Where to publish CRLs and AIA, and validity periods
| Item | Root CA (offline) | Issuing CA (online) | Notes |
|---|---|---|---|
| CA certificate validity | Example: 20 years | Example: 10 years | A CA cannot issue a certificate that outlasts its own expiration. Renewing at half the period is recommended |
| CRL validity | Example: 6 months to 1 year. Do not use delta CRLs | Default: base CRL 1 week, delta CRL 1 day | Once the next update (NextUpdate) passes, validation of the certificates below fails |
| CRL publication | Start the CA, issue by hand, and copy to the web server by hand | Issued automatically and published to the web server and AD | Put the root’s CRL renewal on the annual work schedule |
| CDP and AIA URLs | Put HTTP (for example http://pki.corp.example.com/) first | Same, HTTP first. LDAP is for AD-joined devices | Decide before issuing. Certificates already issued keep the old URL even if you change it later |
| Renewing the CA certificate (re-signing) | Re-sign with the same key, or recreate with a new key | Carry the renewal request to the root and have it signed | A root with a new key must be redistributed to every device |
C:\> certutil -setreg CA\CRLPeriodUnits 52 # Root CA: set the CRL validity to 52 weeks
C:\> certutil -setreg CA\CRLPeriod "Weeks"
C:\> certutil -setreg CA\CRLDeltaPeriodUnits 0 # Do not use delta CRLs
C:\> net stop certsvc & net start certsvc
C:\> certutil -CRL # Issue the CRL (output to the CertEnroll folder)
What is easy to overlook with an offline root CA is renewing the root’s CRL. If the CRL of a root CA that you keep powered off passes its expiration (NextUpdate), validation of every certificate below it fails. Be sure to put it on the annual work schedule. Microsoft recommends not using delta CRLs on an offline root CA, and providing an HTTP CDP for devices other than Windows. OCSP (an online responder) is optional (Part 5).
Why not to put an issuing CA on a DC
This is the answer to “just put the private CA on the DC” from the opening. Do not set up an issuing CA on a domain controller (DC). Microsoft also does not recommend running a CA on a DC.

- Reason 1: operational freedom: A DC with a CA cannot be demoted, and you have to remove the CA role first. Every time you replace a DC you must migrate the CA, and the name of the server hosting the CA cannot be changed (if you change it, issued certificates stop working)
- Reason 2: separation of privileges: CA administrators would get sign-in rights on the DC, so you cannot separate PKI staff from domain administrators
- Reason 3: a target for attack: If you add web enrollment (IIS) to a DC, the DC itself becomes the target of NTLM relay attacks (ESC8, below)
However, protect the issuing CA at the same level of importance as a DC. If an issuing CA is taken over, an attacker can issue certificates for any user, including domain administrators, which is the same as taking over a DC. In Microsoft’s tiering it is treated as Tier 0 (the most critical assets).
The recommended configuration is to put the issuing CA on a dedicated member server and keep the web server that distributes CRLs separate. Distribute the root certificate with GPO, and store the CA’s key in an HSM or in an encrypted backup. You separate them for operations and privileges. The level of protection is the same as for a DC.
Certificate templates and auto-enrollment
A template is a mold for the certificates to be issued. It determines the purpose (EKU), key type and length, validity period, how the subject is built, and who can apply. Copy the default templates and give them their own names before use.

- Build the subject from “Build from this Active Directory information” by default. Use “Supply in the request” (the applicant can specify the name) only where needed, such as for web servers, and require CA administrator approval (a countermeasure against ESC1)
- Auto-enrollment: In the template’s security settings, allow Read, Enroll, and Autoenroll for the target group, and enable auto-enrollment with GPO
Computer Configuration > Policies > Windows Settings > Security Settings
> Public Key Policies > Certificate Services Client - Auto-Enrollment
(Configuration Model: Enabled / check "Renew expired certificates, update pending certificates, and remove revoked certificates" and "Update certificates that use certificate templates")
PS> certutil -pulse # Run auto-enrollment right away
PS> Get-ChildItem Cert:\LocalMachine\My | Format-Table Subject, NotAfter, Thumbprint
PS> Get-Certificate -Template CorpWebServer -DnsName app01.corp.example.com `
-CertStoreLocation Cert:\LocalMachine\My # When applying manually
Certificates issued by auto-enrollment renew automatically as expiration approaches, which prevents expiration incidents. People only do the setup; issuance and renewal run between the devices and the CA. Linux machines and appliances cannot use auto-enrollment, so consider ACME and similar approaches (Part 8).
AD CS vulnerabilities (ESC1 to ESC8 and others)
AD CS is known for the fact that configuration mistakes lead directly to domain takeover.

| No. | Configuration mistake | When abused | Countermeasure |
|---|---|---|---|
| ESC1 | A template where the applicant can specify the SAN, which can be used for client authentication, and which ordinary users can enroll in | Obtain a certificate in an administrator’s name and sign in as the administrator | Build the subject from AD. Require approval. Narrow enrollment permissions |
| ESC2, ESC3 | A template whose purpose is “any purpose” or has no purpose specified, or an enrollment agent template | A certificate usable for anything, applying on behalf of other people | Minimize the purpose. Set restrictions on enrollment agents |
| ESC4, ESC5 | Write permissions on templates or PKI objects (the CA’s computer, containers) | Rewrite a template into the ESC1 form | Inventory ACLs and allow only Tier 0 administrators |
| ESC6 | The CA flag EDITF_ATTRIBUTESUBJECTALTNAME2 | The SAN can be specified with any template | Remove the flag |
| ESC7 | Broad permissions for CA management (ManageCA, Manage Certificates) | Change CA settings, approve pending requests | Keep CA administrators to a minimum |
| ESC8 | Web enrollment (HTTP) accepts NTLM authentication | Relay a DC’s NTLM authentication and obtain the DC’s certificate | HTTPS and Extended Protection for Authentication (EPA), disable NTLM, remove web enrollment if not needed |
| ESC9 to ESC16 | Disabled SID extension, weak mapping, relay to RPC, version 1 templates (ESC15: CVE-2024-49019), and so on | Same as above | Apply updates and use strong mapping |
ESC1 in particular needs attention. If there is even one template with all three conditions, “the applicant can specify the name,” “it can be used for client authentication,” and “ordinary users can enroll,” an ordinary user can become an administrator.
ESC is a classification of attacks that SpecterOps organized in its 2021 paper “Certified Pre-Owned,” and numbers have kept being added since. They can be detected with tools such as Certipy and Locksmith and with Microsoft Defender for Identity. Run checks only in environments you manage and have permission to test.
Certifried and strong certificate mapping
Certifried (CVE-2022-26923), fixed in May 2022, was a vulnerability in which an ordinary user could set the DNS name of a computer account they could create to match a DC’s, and obtain a certificate in the DC’s name.

- The cause was that the DC’s KDC (the Kerberos authentication service) tied an account to a certificate by name alone (weak mapping)
- Microsoft introduced an extension that puts the applicant’s SID in the certificate, and strong mapping, which verifies with the SID or an explicit mapping (such as issuer and serial number) (KB5014754)
- Enforcement mode became the default in February 2025, and the September 2025 update removed the way to go back to compatibility mode
For authentication that relies on old certificates without a SID or on certificates from other companies’ CAs (smart cards, 802.1X, VPN, and so on), you need to reissue them or set up explicit mappings. Today, authentication does not succeed with a certificate that has neither a SID nor an explicit mapping.
Operating AD CS safely, and Windows Server 2025

In periodic checks, review the CA flags (ESC6), the templates being issued, and the permissions on templates and the CA.
C:\> certutil -getreg policy\EditFlags # EDITF_ATTRIBUTESUBJECTALTNAME2 must not be present
C:\> certutil -setreg policy\EditFlags -EDITF_ATTRIBUTESUBJECTALTNAME2
C:\> certutil -CATemplates # List of templates being issued
C:\> certutil -setreg CA\AuditFilter 127 # Enable CA auditing (request 4886, issuance 4887, and so on)
- Remove unused templates from issuance. Copy version 1 templates (such as the default “Web Server”) to make them version 2 or later (a countermeasure against ESC15)
- Require HTTPS and Extended Protection for web enrollment (/certsrv), and remove it if it is not used (a countermeasure against ESC8)
- Back up the CA’s key and database regularly, and try the restore procedure (
certutil -backup,Backup-CARoleService)
The key is to have all three: checking the settings, a way to notice (audit logs), and a way to recover (backups).
On Windows Server 2025, with the May 2026 security update (KB5087539) and later, AD CS can create CAs and templates with the post-quantum signature algorithm ML-DSA (FIPS 204) (phase 1; ML-KEM and composite signatures are planned for the future). Clients need Windows 11 24H2 or 25H2 with updates from October 2025 or later, and support in other operating systems and browsers is limited, so it is for testing for now. Also, Windows Server 2025 cannot use RSA certificates shorter than 2048 bits for TLS server authentication.
ACM (AWS Certificate Manager)
From here we turn to the cloud. First, AWS ACM.

| Item | Details (as of September 2026) | Notes |
|---|---|---|
| Issuer and cost | Amazon Trust Services. Public certificates used with AWS services are free | If you use CAA, allow amazon.com and others |
| Validity and renewal | 198 days (for certificates issued or renewed on or after February 18, 2026). Renews automatically 45 days before expiration | Changed from 395 days to match shorter validity periods (Part 6) |
| Domain validation | DNS validation (CNAME), email validation, HTTP validation (CloudFront) | Deleting the DNS validation CNAME stops automatic renewal. Email validation needs approval at every renewal |
| Where it can be placed | ELB, CloudFront (issued in us-east-1), API Gateway, and so on | The private key cannot be taken out and is managed inside AWS |
| Exportable public certificates | Since June 2025. You can take them out with the private key and use them on EC2 or on premises ($7 per FQDN for the 198-day version, $79 for a wildcard) | You protect the exported key and redeploy after renewal yourself |
| ACME support | Since July 2026. You can issue and renew with ACME clients such as certbot and cert-manager | Check the ACM pricing page for the cost |
| Imported certificates | Certificates from other CAs can be used with ELB and others | Not renewed automatically. Monitor the expiration yourself |
When ACM cannot renew before expiration, notifications go out through AWS Health and EventBridge from 30 days before (for an overview of ACM, see Part 9 of the earlier series Cloud Fundamentals). Where you place the certificate determines how the key is handled. If you place it on AWS services, the key never leaves AWS.
The easily overlooked pitfalls are that deleting the DNS validation CNAME stops automatic renewal, and that imported certificates are not renewed automatically.
AWS Private CA and the Azure equivalents
| Role | AWS | Azure | Differences and notes |
|---|---|---|---|
| Issuing and auto-renewing public certificates | ACM | Managed certificates for App Service and Front Door | Azure has no general-purpose service equivalent to ACM |
| Storing certificates and keys | ACM (import) | Key Vault (certificates) | Key Vault can renew automatically in cooperation with DigiCert and GlobalSign |
| Private CA | AWS Private CA (general-purpose mode $400 per CA per month, short-lived certificate mode $50 per CA per month) | No general-purpose CA service. For devices, Microsoft Cloud PKI in Intune; otherwise AD CS on a VM | Short-lived certificate mode issues only certificates valid for up to 7 days |
| Auto-enrollment for AD devices | Private CA Connector for AD | Microsoft Cloud PKI (distributed with Intune SCEP) | In both, distributing the root is needed separately |
| Termination at a load balancer | ALB and NLB (ACM certificates) | Application Gateway and Front Door (Key Vault certificates) | The idea is the same |

AWS centers on ACM and Private CA, and Azure on Key Vault. Only the private CA does not map one to one. AWS Private CA can build a hierarchy of a root and subordinate CAs, and there is also a per-certificate charge ($0.75 per certificate up to 1,000 certificates per month in general-purpose mode). It suits internal web servers, mTLS between containers (Part 7), and certificates for IoT devices. If you move from AD CS, Connector for AD lets you carry over auto-enrollment.
TLS termination and re-encryption at load balancers
| Method | Where the certificate and key are | What the load balancer can do | Suited for |
|---|---|---|---|
| Termination (the LB decrypts, and HTTP goes on to the servers) | One public certificate on the LB | Routing by path and host name, session persistence with cookies, WAF | The network between the LB and the web servers is trusted |
| Termination plus re-encryption | A public certificate on the LB, an internal certificate on the web servers | Same as above. The path behind the LB is also encrypted | Policy requires “encryption on the whole path” |
| Passthrough (forward as TCP) | A public certificate and key on each web server | Only TCP load distribution (the content cannot be seen) | End-to-end encryption is required, mail using STARTTLS, and so on |

- Count certificates by name, not by number of servers. With passthrough, the same key is multiplied by the number of web servers
- With re-encryption, check whether the LB verifies the web server’s certificate. AWS’s ALB does not verify the target’s certificate, so communication works even with a self-signed or expired certificate
The “it works even with self-signed certificates behind the ALB” from the opening is exactly this. It works because the ALB is not verifying, not because it is safe. The more places the key is kept, the greater the risk of leakage and the effort of renewal.
How vSphere certificates work
Finally, vSphere certificates, which infrastructure engineers often run into.

- vCenter Server has a built-in CA called VMCA (VMware Certificate Authority). In vSphere 7 and later the PSC was merged into vCenter, so today this means vCenter’s VMCA
- What users see in the browser is the Machine SSL certificate used on port 443
- When ESXi is added to vCenter, it automatically receives a certificate signed by VMCA. The validity period is 1,825 days (5 years) by default. The VMCA root is valid for 10 years by default, and certificates signed by VMCA do not outlast the root’s expiration
- With vCenter 8.0 Update 3h and later, the VMCA Machine SSL certificate is automatically renewed 5 days before expiration
By default the issuer is VMCA for everything, so you need to distribute the VMCA root to make it trusted.
Ways to use VMCA
| Method | Certificates you get from a private CA | Management effort | Suited for |
|---|---|---|---|
| Use VMCA as is (default) | None. Distribute the VMCA root to administrators’ devices | Minimal. Adding and renewing ESXi is automatic | Small environments used only by administrators |
| Hybrid | Only vCenter’s Machine SSL: one web server certificate from the private CA | Small. ESXi stays on VMCA | Policy does not allow creating a CA below the private CA, and you want to remove the vSphere Client warning |
| Make VMCA an intermediate CA | One certificate for a “subordinate certification authority” (a web server certificate will not work) | Small. From then on VMCA issues automatically in the private CA’s chain | Medium to large environments that want to align with the private PKI. Do it before adding ESXi |
| Custom | As many as vCenter plus the number of ESXi hosts (example: 1 + 8 certificates) | Large. Issuing and renewing are manual work for every host | Only when policy does not allow using VMCA |

Broadcom does not recommend a single method; it says that “hybrid is common for small environments and an intermediate CA for large ones, and custom is often not worth the effort.” Wildcard certificates cannot be used. Check the procedure by version in Broadcom TechDocs. The number of certificates you get from the private CA is the amount of manual work. In the exercise in Part 11 (question 5), you think through how to choose.
Think about it
- How many tiers is your internal AD CS, and where is the root CA’s private key? When will the root CA’s CRL next expire?
- Among the templates being issued, is there one that has all three: “the applicant can specify the name,” “it can be used for client authentication,” and “ordinary users can enroll”?
- Behind your internal load balancers, in how many places is the private key of a public certificate kept? Can you reduce that to one?
Hint: For question 1, look at NextUpdate in certutil -dump RootCA.crl. For question 2, think about “Certificate templates and auto-enrollment” and “ESC1.” For question 3, think about the three methods in “TLS termination and re-encryption at load balancers.”
Summary
- AD CS has two tiers: an offline root CA plus an enterprise issuing CA. Do not forget renewing the root’s CRL
- Do not put the issuing CA on a DC, but protect it as Tier 0 with the same weight as a DC
- Build the template subject from AD. Do not create a template that meets all three ESC1 conditions
- Strong certificate mapping was fully enforced in September 2025. Watch for old certificates without a SID
- ACM uses 198 days and renews automatically 45 days before. Do not delete the DNS validation CNAME. Imported certificates are not renewed automatically
- ALB does not verify the target’s certificate. For vSphere, hybrid or an intermediate CA is realistic
Next time, we summarize the steps for isolating the cause when a certificate error occurs.
The Certificate Fundamentals series (11 parts)
All 11 parts with a reading guide: Certificate Fundamentals
- Why Do We Need Certificates?
- Cryptography basics
- Trying it with openssl and PowerShell
- Inside an X.509 certificate
- PKI and how trust works
- Certificate types and issuance
- How TLS works
- Lifecycle and automation
- Private PKI and the cloud (this article)
- Certificate troubleshooting
- Certificate design exercises
This series is the English edition of 【証明書入門】, originally written in Japanese.


コメント