Skip to content

Set Up an Enrollment Policy

An enrollment policy is what Windows computers and users are pointed at. It offers some of the CA’s templates and says how clients log in to get certificates from them.

To manage policies, log in to PKIaaS.io, choose the CA in the top bar and navigate to Windows (CEP/CES) -> Policies. The table lists each policy with its logins, templates, whether it is enabled, its revision and its ID.

Windows Policies list

Create a policy

Click “Create” and fill in the form:

  • Name - the policy’s name in PKIaaS.io.
  • Friendly name - what Windows shows for the policy; the name when left empty.
  • Logins - how clients may log in:
    • Username and password - with a credential from the policy’s Credentials tab. Needed for new certificates.
    • Client certificate - with a certificate from this CA, to renew it.
    • Key-based renewal - renew a certificate by signing the request with its key, without a login. The template must allow it too (see Windows Template Settings).
  • Refresh interval (hours) - how long Windows keeps the policy before it asks again (8 hours, as Active Directory Certificate Services).
  • Enabled - a disabled policy answers Windows as if it didn’t exist.
  • Templates offered - the templates the policy offers. Only templates with Windows settings can be offered; you can change them later on the policy’s Templates tab.

Click “Create”. The policy opens with its tabs: General, Templates, Credentials, Connection and History.

Create Windows Policy

Templates

The Templates tab lists the templates the policy offers, and whether each is Compatible with its Windows settings. Windows is offered a template only while it is compatible; when it isn’t, the problems are listed with how to fix them. Click “Add templates” to offer more, “Remove” to stop offering one, and “Save” to keep the changes.

Check Revoke on renewal for a template to have the certificate being renewed revoked when its renewal is issued through this policy.

Windows Policy Templates tab

Credentials

Windows clients log in with the usernames and passwords on the Credentials tab when the policy allows username and password logins. Click “Create” and fill in:

  • Name - the credential’s name in PKIaaS.io; the CA’s log names the credential, never its username or password.
  • Username - what Windows logs in with. The password is made for you and shown once.
  • Templates - All the policy offers, or Only these: the templates checked below it. Clients that log in with the credential are offered only those templates.
  • Names it may ask for - leave empty for any name. Each row allows that name and those under it; check Allow wildcard names (*.example.com) to allow wildcards.
  • Requests wait for approval - requests made with the credential wait in X509 Certificates -> Pending Requests until they are approved.
  • Expires - Never, or a date and time after which the credential can’t log in.
  • Enabled - turn it off to stop its logins.

Click “Create”. The username and password are shown once: store the password now. If it’s lost, click “New password” on the credential’s row; the old password stops working at once, so every computer using it needs the new one.

The Last used column shows when and from which address the credential last logged in.

Credential Password

Connection

The Connection tab shows the policy’s CEP addresses, one for each login method, ready to copy, and the steps to set up off-domain and domain-joined computers. The CES addresses are folded away: Windows finds them in the policy, so you never enter them, but they are there for firewall rules, certreq -config and troubleshooting. An address of a login method the policy doesn’t allow is marked “(off in this policy)“.

Windows Policy Connection tab

History

Every saved change makes a new revision of the policy. The History tab lists them, and an earlier revision can be restored.

Delete a policy

Click “Delete policy” on the General tab. Its credentials are deleted with it, and Windows computers using it get no policy any more; its issuances and history are kept.

Next, see Windows Template Settings.