Skip to content

Windows Template Settings

A certificate template is offered to Windows clients only once it has Windows settings: what Windows is told about the template, such as its Windows name, its key and how it renews. The template itself still decides what the CA signs: its validity period, key usage, extended key usage and other extensions, and which names a request may carry. Its tabs are laid out like the template editor of Active Directory Certificate Services.

To manage Windows settings, log in to PKIaaS.io, choose the CA in the top bar and navigate to Windows (CEP/CES) -> Templates. The table lists every template with Windows settings: its Windows name, OID, revision, whether it is compatible with its settings, and the policies that offer it.

Windows Templates list

Add Windows settings to a template

Click “Add”, choose the template and click “Continue”. Its settings page opens with suggested settings; nothing is saved until you click “Save”. The template gets its OID on the first save.

Every save is tried first by signing a test certificate with a throwaway CA, so settings that would break issuing are refused when they are saved, with what is wrong and how to fix it. A save raises the template’s minor revision.

If the template and its settings don’t agree, for example a key usage the chosen key can’t do, the page says so and lists the problems. Windows clients aren’t offered the template until the problems are fixed, in the template or in its Windows settings.

Windows Template General tab

General

  • Windows name - the name Windows clients, certreq and scripts know the template by; unique in each policy. It starts as the template’s name without spaces. Letters, digits, ”.”, ”_” and ”-“.
  • For - Computers or Users. Computer templates are offered when Windows requests machine certificates, user templates when it requests user certificates.
  • Compatibility - the template schema Windows is told: Windows Server 2003 (schema 2: legacy CSP, RSA only), Windows Server 2008 (schema 3: CNG), or Windows Server 2012 / 2012 R2 (schema 4: CNG, key-based renewal).
  • Renewal period (days) - how long before expiry Windows renews; at most the validity period.

The tab also shows the template’s OID, revision and validity period, and the policies that offer it.

Request Handling

  • Purpose - Signature, Encryption, or Signature and encryption.
  • Key permissions - Authorize additional service accounts to access the private key, and which accounts. Needs a key storage provider (see Cryptography).
  • Delete revoked or expired certificates (do not archive), Include symmetric algorithms allowed by the subject, Allow private key to be exported, Renew with the same key, For automatic renewal of smart card certificates, use the existing key if a new key cannot be created, Allow autoenrollment, Prompt the user during enrollment and Require user input when the private key is used - as in Active Directory Certificate Services.

Cryptography

  • Provider category - Key Storage Provider, or Legacy Cryptographic Service Provider. Schema 2 always uses a legacy provider, schema 3 always a key storage provider, and ECDSA keys need a key storage provider.
  • Algorithm name and Minimum key size - the key Windows clients make. For RSA, leaving the size empty uses the smallest the template accepts. For ECDSA, the curve sets the size.
  • Providers - Requests can use any provider available on the subject’s computer, or Requests must use one of the following providers: Windows tries the checked providers in the order shown. Another provider, such as a vendor’s smart card or HSM provider, can be added by name.
  • Request hash - the hash Windows signs the request with.

To see the providers installed on a Windows computer, run certutil -csplist. On a computer without a smart card reader, it ends with E_NOTIMPL at “Microsoft Smart Card Key Storage Provider”; the list before it is complete.

Subject Name

  • Supply in the request - the client supplies the names. Which names a request may carry is still the template’s rule, and a credential may limit them further (see Credentials). Check Use subject information from existing certificates for autoenrollment renewal requests so that renewals keep the names of the certificate they renew.
  • Build from this Active Directory information - not available yet.

If names come from the request and the template allows client authentication, anyone who may enroll can get a certificate that logs in as someone else; the page warns about it.

Issuance Requirements

  • CA certificate manager approval - requests wait in X509 Certificates -> Pending Requests until they are approved.
  • Valid existing certificate - a renewal is approved by the certificate it renews.
  • Allow key based renewal - a client may renew by signing the request with the key of the certificate it renews, with no username or password. It needs Valid existing certificate, Windows Server 2012 compatibility (schema 4), and a policy that allows Key-based renewal logins. See Autoenrollment and Renewal.

Superseded Templates

Certificates from the templates chosen here are replaced by certificates from this one. Templates of the CA with a Windows OID are listed; another template’s OID can be added by hand.

Extensions

  • Issuance Policies - the issuance policies certificates from the template carry, chosen from the CA’s Windows (CEP/CES) -> Issuance Policies. They need certificate policies turned on in the template first.

Key usage, extended key usage and the other extensions come from the template.

History

Each saved revision of the settings is listed on the History tab, and an earlier one can be restored.

Remove Windows settings

Click “Remove Windows settings”. Windows clients are no longer offered the template. The template keeps its OID, which settings added later reuse, and its history.

Next, see Add the Policy on Windows.