How to Configure Windows Server Certificate Authority (CA) for Auto-Enrollment

The Challenge of Certificate Management

In modern enterprise environments, Public Key Infrastructure (PKI) is the backbone of internal security. Digital certificates are used for everything from securing internal IIS web servers with HTTPS, to authenticating corporate laptops to Wi-Fi via 802.1X, to encrypting email with S/MIME.

Historically, provisioning these certificates was a tedious, manual process. An administrator had to generate a Certificate Signing Request (CSR), submit it to the internal Certificate Authority (CA), download the issued certificate, and manually install it on the target machine. If the organization has 5,000 workstations that need unique machine certificates for VPN authentication, manual provisioning is impossible. Furthermore, when those certificates expire in 12 months, the entire process must be repeated, or widespread outages will occur.

To solve this, Microsoft Active Directory Certificate Services (AD CS) includes an incredibly powerful feature known as Auto-Enrollment. Through Group Policy, domain-joined computers and users can automatically request, download, and seamlessly renew their own digital certificates without any IT intervention.

Step 1: Prerequisites

Before configuring auto-enrollment, you must have a functional Enterprise Certificate Authority deployed on a domain-joined Windows Server. (A “Standalone” CA cannot perform auto-enrollment because it does not integrate with Active Directory templates).

Ensure the Active Directory Certificate Services role is installed and configured as an Enterprise Root (or Subordinate) CA.

Step 2: Duplicating and Configuring the Certificate Template

Certificates are issued based on templates. The default templates provided by Microsoft are read-only and do not have auto-enrollment enabled. You must duplicate an existing template and modify its properties.

  1. Open the Certificate Authority console.
  2. Right-click Certificate Templates and select Manage. This opens the Certificate Templates Console.
  3. Find the template you want to deploy. For computer authentication (e.g., for Wi-Fi or VPN), right-click the Workstation Authentication template and select Duplicate Template.
  4. In the Properties dialog, go to the General tab. Name the template “Corporate Auto-Enroll Workstations”. Check the box to Publish certificate in Active Directory if required by your network stack.
  5. Go to the Subject Name tab. Select Build from this Active Directory information. Choose DNS name as the Subject name format. (This automatically populates the certificate with the computer’s exact hostname).

Step 3: Setting the Security Permissions (The Crucial Step)

For auto-enrollment to function, the target computers must have explicit permission to read, enroll, and auto-enroll the template.

  1. Still in the Template Properties, go to the Security tab.
  2. Highlight the Domain Computers group (or a specific security group containing your target machines).
  3. In the permissions box, check the Allow boxes for:
    • Read
    • Enroll
    • Autoenroll
  4. Click OK to save the new template.

Step 4: Publishing the Template on the CA

Even though the template is created in Active Directory, the specific CA server must be instructed to issue it.

  1. Close the Templates Console and return to the primary Certificate Authority console.
  2. Right-click Certificate Templates > New > Certificate Template to Issue.
  3. Select your newly created “Corporate Auto-Enroll Workstations” template and click OK. The template will now appear in the active list.

Step 5: Configuring the Group Policy Object (GPO)

The final step is to instruct the client machines to actually utilize the auto-enrollment feature. This is done via Group Policy.

  1. Open the Group Policy Management Console (GPMC).
  2. Create a new GPO named “PKI Auto-Enrollment Policy” and link it to the Organizational Unit (OU) containing your target computers.
  3. Right-click the GPO and select Edit.
  4. Navigate to Computer Configuration > Policies > Windows Settings > Security Settings > Public Key Policies.
  5. Double-click on Certificate Services Client – Auto-Enrollment.
  6. Change the Configuration Model to Enabled.
  7. Check the two critical boxes:
    • Renew expired certificates, update pending certificates, and remove revoked certificates
    • Update certificates that use certificate templates
  8. Click OK.

Note: If you are auto-enrolling User certificates (like S/MIME for email), you must configure the exact same settings under the User Configuration node in the GPO.

Step 6: Verifying the Deployment

To verify the setup, log in to a target client computer.

Open an elevated command prompt and force a Group Policy update:

gpupdate /force

Then, force the certificate auto-enrollment task to trigger immediately (otherwise it waits for a scheduled background task or a reboot):

certreq -q -machine -enroll

Open the local Certificates snap-in (certlm.msc) and navigate to Personal > Certificates. You should instantly see a brand new digital certificate bearing the computer’s hostname, issued by your internal CA. When this certificate reaches 80% of its lifespan, the Windows client will silently negotiate with the CA and renew it automatically.

Conclusion

Configuring AD CS Auto-Enrollment transforms a crippling administrative burden into a seamless, invisible infrastructure service. By carefully mapping Active Directory permissions to duplicated certificate templates and enforcing Group Policy, IT administrators can achieve 100% encrypted, certificate-based authentication across tens of thousands of endpoints with zero ongoing maintenance.

RELATED POSTS

  • How to Create and Manage Windows Server Core Installations Using Sconfig
  • How to Setup a SSTP (Secure Socket Tunneling Protocol) VPN in Windows Server
  • How to Configure Windows Server Update Services (WSUS) with Group Policy
  • How to Clear the Windows RSAT (Remote Server Administration Tools) Cache via PowerShell
  • How to Delegate Control in Active Directory to Non-Admin Users
  • Get the best tech tips delivered straight to your inbox.

    Join thousands of readers mastering Apple, Google, Microsoft, and Linux.