Skip to content

How to Create a Web Server Certificate Template in AD CS Print

  • 0

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

  1. Duplicate the current Web Server template.
  2. Assign a unique versioned display name.
  3. Configure cryptography, subject source, validity, and Server Authentication EKU.
  4. Grant enrollment to a dedicated server group and publish the template.

Commands

certutil -CATemplates
Get-CATemplate | Select Name,DisplayName
certutil -template

Verification

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.


Was this answer helpful?

« Back