Skip to content

Two-Tier Enterprise PKI Architecture & CA Deployment Baseline

SOP-SYS-050 Standard Operating Procedure v1.0.0
Last Updated 2026-10-15
Author Systems Administration Team
πŸ’» Target OS / Systems:
Active Directory Certificate Services (AD CS)Windows Server 2022 / 2025Standalone Offline Root CAEnterprise Subordinate Issuing CACore Network Fabric (802.1X, TLS, LDAPS)

Before you begin

  • Applies to:A two-tier AD CS deployment on Windows Server 2022 or 2025 with an offline standalone root CA and an enterprise issuing CA.
  • Where to start:Start with the approved PKI design. Prepare the isolated root CA and the separate issuing CA before installing roles.
  • What you need:Have authorized administrative access, agreed certificate and key settings, distribution URLs, protected transfer media, and a plan to back up and recover the CA keys.
Guide tools
Guide tools
0/0 Steps (0%)

Scope, Architecture & Lifecycle Matrix

This standard operating procedure governs the greenfield deployment, key sizing, cryptographic parameters, and lifecycle management of an enterprise Two-Tier Public Key Infrastructure (PKI) using Active Directory Certificate Services (AD CS).

An enterprise must never deploy an active Root CA directly joined to Active Directory. The Root CA must remain permanently offline and air-gapped to prevent compromise.

Two-Tier Enterprise PKI Architecture Diagram showing Offline Standalone Root CA air-gapped signing and Enterprise Subordinate Issuing CA

Two-Tier Enterprise PKI Topology: Offline standalone Root CA secured via air-gapped cryptographic signing, issuing subordinate certificates to domain-joined Enterprise Subordinate Issuing CAs, with distribution via HTTP CDP / AIA and automated GPO enrollment.


Cryptographic Specifications & Sizing

ParameterOffline Standalone Root CAEnterprise Subordinate Issuing CA
Common Name (CN)Corp-RootCACorp-IssuingCA-01
Domain MembershipWorkgroup (Air-Gapped / Virtual Disk Disconnected)Domain Member (corp.internal)
Cryptographic ProviderRSA #Microsoft Software Key Storage ProviderRSA #Microsoft Software Key Storage Provider (or HSM)
Key Length4096-bit4096-bit (Minimum 3072-bit)
Hash AlgorithmSHA-256SHA-256
CA Validity Period20 Years5 Years
CRL Distribution PointsHTTP Web Virtual Directory (http://pki.corp.internal/pki/)HTTP Web Virtual Directory + LDAP fallback

Execution: Phase 1 β€” Offline Standalone Root CA Setup

Perform on the isolated, non-domain joined bare-metal server or disconnected virtual machine.

01

Create Root CAPolicy.inf Configuration

Root CA Policy

Place the CAPolicy.inf file into C:\Windows\CAPolicy.inf prior to role installation. This defines the cryptographic extension parameters, validity unit limits, and CRL generation schedules.

[Version]
Signature="$Windows NT$"
[PolicyStatementExtension]
Policies=InternalLegalPolicy
Critical=FALSE
[InternalLegalPolicy]
OID=1.3.6.1.4.1.99999.1.1
Notice="Corp Internal Enterprise Root Certification Authority"
[CertsAndKeys]
RenewalKeyLength=4096
RenewalValidityPeriod=Years
RenewalValidityPeriodUnits=20
CRLPeriod=Months
CRLPeriodUnits=6
CRLDeltaPeriod=Days
CRLDeltaPeriodUnits=0
02

Install and Initialize Standalone Root CA

AD CS Initialization

Install the Certificate Authority binary role and configure the Standalone Root Certification Authority using RSA 4096-bit SHA-256 cryptography.

Terminal window
# Install Certificate Services role binaries
Install-WindowsFeature Adcs-Cert-Authority -IncludeManagementTools
# Configure Standalone Root Certification Authority
Install-AdcsCertificationAuthority `
-CAType StandaloneRootCA `
-CryptoProviderName "RSA#Microsoft Software Key Storage Provider" `
-KeyLength 4096 `
-HashAlgorithmName SHA256 `
-CACommonName "Corp-RootCA" `
-ValidityPeriod Years `
-ValidityPeriodUnits 20
03

Configure CDP and AIA Extension URLs on Root CA

CRL / AIA Definition

Define the static HTTP distribution points embedded in all issued certificates, configure CRL lifespans, restart the Certificate Service, and generate the initial CRL.

Terminal window
# Define primary HTTP Distribution Point (CDP)
certutil -setreg CA\CRLPublicationURLs "1:C:\Windows\system32\CertSrv\CertEnroll\%3%8%9.crl\n2:http://pki.corp.internal/pki/%3%8%9.crl"
# Define primary HTTP Authority Information Access (AIA)
certutil -setreg CA\CACertPublicationURLs "1:C:\Windows\system32\CertSrv\CertEnroll\%1_%3%4.crt\n2:http://pki.corp.internal/pki/%1_%3%4.crt"
# Set CRL Validity Period to 6 Months
certutil -setreg CA\CRLPeriodUnits 6
certutil -setreg CA\CRLPeriod "Months"
certutil -setreg CA\CRLDeltaPeriodUnits 0
certutil -setreg CA\CRLDeltaPeriod "Days"
# Restart CA service and publish initial CRL
Restart-Service certsvc
certutil -CRL
04

Export Root Certificate and CRL for Active Directory

Air-Gap Export

Copy C:\Windows\System32\CertSrv\CertEnroll\Corp-RootCA.crt and Corp-RootCA.crl to an encrypted, write-blocked USB drive. Shut down and quarantine the Root CA VM/Host.

Terminal window
# Copy artifacts to removable air-gap drive (e.g., E:)
Copy-Item "C:\Windows\System32\CertSrv\CertEnroll\Corp-RootCA.crt" -Destination "E:\"
Copy-Item "C:\Windows\System32\CertSrv\CertEnroll\Corp-RootCA.crl" -Destination "E:\"
# Gracefully shut down Root CA host
Stop-Computer -Force

Execution: Phase 2 β€” HTTP Web PKI Repository Setup

Deploy on internal IIS web server (pki.corp.internal on IP 10.10.10.45):

05

Deploy Web PKI Virtual Directory & Publish Root Artifacts

IIS CDP Repository

Provision the HTTP revocation distribution repository on IIS, enable double-escaping for delta CRLs (+ symbol), and publish the Root CA certificate and CRL into Active Directory Domain Services.

Terminal window
# 1. Install IIS role
Install-WindowsFeature Web-Server, Web-Http-Errors, Web-Http-Logging, Web-Stat-Compression -IncludeManagementTools
# 2. Create PKI virtual directory
New-Item -ItemType Directory -Path "C:\PKI" -Force
Import-Module WebAdministration
New-WebVirtualDirectory -Site "Default Web Site" -Name "pki" -PhysicalPath "C:\PKI"
# 3. Allow double escaping for delta CRLs (+)
Set-WebConfigurationProperty -Filter "system.webServer/security/requestFiltering" -PSPath "IIS:\Sites\Default Web Site\pki" -Name "allowDoubleEscaping" -Value "True"
# 4. Copy the Root CA certificate and CRL into C:\PKI from the secure USB drive
Copy-Item "E:\Corp-RootCA.crt" -Destination "C:\PKI\"
Copy-Item "E:\Corp-RootCA.crl" -Destination "C:\PKI\"
# 5. Publish Root CA certificate and CRL to Active Directory Public Key Services container
certutil -dspublish -f "C:\PKI\Corp-RootCA.crt" RootCA
certutil -dspublish -f "C:\PKI\Corp-RootCA.crl" "Corp-RootCA"

Execution: Phase 3 β€” Enterprise Subordinate Issuing CA Setup

Perform on the domain-joined server CORP-CA01.corp.internal.

06

Configure Subordinate CAPolicy.inf & Request Certificate

Subordinate CSR

Place C:\Windows\CAPolicy.inf on the subordinate server and install the Enterprise Subordinate CA role, generating an offline certificate request file (C:\Corp-IssuingCA-01.req).

Terminal window
# Create Subordinate CAPolicy.inf
@"
[Version]
Signature="`$Windows NT`$"
[PolicyStatementExtension]
Policies=InternalLegalPolicy
Critical=FALSE
[InternalLegalPolicy]
OID=1.3.6.1.4.1.99999.1.2
Notice="Corp Internal Enterprise Issuing Subordinate CA"
[CertsAndKeys]
RenewalKeyLength=4096
RenewalValidityPeriod=Years
RenewalValidityPeriodUnits=5
CRLPeriod=Days
CRLPeriodUnits=7
CRLDeltaPeriod=Hours
CRLDeltaPeriodUnits=24
"@ | Out-File -FilePath "C:\Windows\CAPolicy.inf" -Encoding ascii
# Install Subordinate CA role binaries
Install-WindowsFeature Adcs-Cert-Authority, Adcs-Web-Enrollment -IncludeManagementTools
# Request Subordinate CA certificate
Install-AdcsCertificationAuthority `
-CAType EnterpriseSubordinateCA `
-CryptoProviderName "RSA#Microsoft Software Key Storage Provider" `
-KeyLength 4096 `
-HashAlgorithmName SHA256 `
-CACommonName "Corp-IssuingCA-01" `
-OutputCertRequestFile "C:\Corp-IssuingCA-01.req"
07

Sign CSR on Offline Root CA & Install Subordinate Certificate

Certificate Signing

Transfer the request to the powered-on Offline Root CA, sign and issue the subordinate certificate, transfer it back to the Issuing CA, and install the certificate into AD CS.

Terminal window
# --- ON OFFLINE ROOT CA ---
certreq -submit "E:\Corp-IssuingCA-01.req"
# Take note of the RequestID displayed (e.g. 2)
certutil -resubmit 2
certreq -retrieve 2 "E:\Corp-IssuingCA-01.crt"
# Shut down Offline Root CA
# --- ON ISSUING CA (CORP-CA01) ---
certutil -installcert "E:\Corp-IssuingCA-01.crt"
# Configure CDP and AIA publication URLs
certutil -setreg CA\CRLPublicationURLs "1:C:\Windows\system32\CertSrv\CertEnroll\%3%8%9.crl\n2:http://pki.corp.internal/pki/%3%8%9.crl\n10:ldap:///CN=%7%8,CN=%2,CN=CDP,CN=Public Key Services,CN=Services,%6%10"
certutil -setreg CA\CACertPublicationURLs "1:C:\Windows\system32\CertSrv\CertEnroll\%1_%3%4.crt\n2:http://pki.corp.internal/pki/%1_%3%4.crt\n2:ldap:///CN=%7,CN=AIA,CN=Public Key Services,CN=Services,%6%11"
# Set CRL validity: Base CRL 7 Days, Delta CRL 24 Hours
certutil -setreg CA\CRLPeriodUnits 7
certutil -setreg CA\CRLPeriod "Days"
certutil -setreg CA\CRLDeltaPeriodUnits 24
certutil -setreg CA\CRLDeltaPeriod "Hours"
# Restart Certificate Services and publish initial CRL
Restart-Service certsvc
certutil -CRL

Verification & PKI Health Validation

08

Execute Chain Validation and PKI Diagnostic Audit

Health Check

Verify that all CDP, AIA, and OCSP uniform resource locators resolve cleanly across the domain and launch the enterprise PKI diagnostic console.

Terminal window
# Validate complete certificate chain and URL fetch
certutil -verify -urlfetch "C:\Windows\System32\CertSrv\CertEnroll\Corp-IssuingCA-01.crt"
# Launch Enterprise PKI Health Snap-in
pkiview.msc

Expected Result: In pkiview.msc, all status indicators for Root CA, Subordinate CA, CDP locations, and AIA locations show green checkmarks with status OK.


Rollback & Emergency CA Decommissioning

If the Subordinate CA private key is compromised or corrupted:

  1. Power up Offline Root CA in physical isolation.
  2. Revoke the Subordinate CA certificate:
Terminal window
certutil -revoke "SerialNumber" 1 # (1 = Key Compromise)
certutil -CRL
  1. Copy updated Root CRL to HTTP repository (C:\PKI\Corp-RootCA.crl).
  2. Publish updated CRL into Active Directory:
Terminal window
certutil -dspublish -f "C:\PKI\Corp-RootCA.crl" "Corp-RootCA"

Comments