Applies to: Windows Server 2019, Windows Server 2022, and Windows Server 2025.
A dedicated template standardizes key size, subject handling, intended usage, validity, and enrollment permissions for IIS servers.
Prerequisites
- Administrative access to the affected servers.
- A verified backup and approved maintenance window.
- A pilot system for testing before production rollout.
Step-by-step procedure
- Duplicate the current Web Server template.
- Assign a unique versioned display name.
- Configure cryptography, subject source, validity, and Server Authentication EKU.
- Grant enrollment to a dedicated server group and publish the template.
Commands
certutil -CATemplates
Get-CATemplate | Select Name,DisplayName
certutil -templateVerification
An authorized pilot server can request the template and the resulting certificate contains the intended SAN, key length, and EKU.
Rollback
Unpublish the template and remove enrollment permissions; revoke test certificates if policy requires it.
Security and operations
- Use least privilege and document all production changes.
- Replace example addresses and names with approved values.
- Review relevant Windows event logs after implementation.
Design the template for a specific enrollment workflow
Duplicate a suitable template rather than changing a broadly used default. Give the new template a clear name, document its intended server population and set compatibility, key properties and intended purposes according to the actual application. A higher compatibility setting can exclude older clients or CAs.
Decide who supplies the subject and DNS alternative names. Allowing a requester to supply arbitrary names can be dangerous when combined with broad enrollment permissions and authentication purposes. Restrict the authorized requesting group and review the complete template configuration rather than judging it by its display name.
Publishing the template on the issuing CA and granting Enroll permission are distinct tasks. After publication, request a pilot certificate and inspect the chain, private-key availability, DNS names and intended purpose. Confirm that the relying clients trust the issuing hierarchy and can reach the revocation locations.
Keep a record of the original template and issued test certificates. Removing a template from a CA stops new enrollment through that publication; it does not automatically revoke certificates already issued from it. If a template was exposed incorrectly, assess the issued certificates and follow the CA’s incident and revocation process.
Related resources
Canadian Windows VPS and RDS hosting is available from managed Windows VPS hosting. Also review the official Microsoft Windows Server documentation.
How to Install an Enterprise Root Certificate Authority with PowerShell
Install a deliberately designed Enterprise Root CA with explicit cryptography, stable publication paths and restricted issuance, then…
How to Build an Offline Standalone Root CA for a Two-Tier PKI
How to Build an Offline Standalone Root CA for a Two-Tier PKIApplies to: Windows Server 2019, 2022 and 2025.An offline root signs…
How to Duplicate and Publish an AD CS Certificate Template
How to Duplicate and Publish an AD CS Certificate TemplateApplies to: Windows Server 2019, 2022 and 2025.Duplicating a built-in template…
How to Configure Certificate Auto-Enrollment with Group Policy
How to Configure Certificate Auto-Enrollment with Group PolicyApplies to: Windows Server 2019, 2022 and 2025.Auto-enrollment issues and…
How to Request and Install a Web Server Certificate from an Enterprise CA
How to Request and Install a Web Server Certificate from an Enterprise CAApplies to: Windows Server 2019, 2022 and 2025.A web certificate…