Skip to content

Move from the Classic Addresses

Before enrollment policies, each CA had one set of Windows addresses, its classic addresses:

LoginClassic CEP address
Username and passwordhttps://cep.pkiaas.io/<CA ID>
Client certificatehttps://<CA ID>.mtls.pkiaas.io:4433/Certificate

The classic addresses no longer work. Windows clients still set up with them get no policy, so they can’t request or renew certificates; certificates they already have stay valid until they expire. Move them to their policy’s addresses.

Moving changes only the address. The settings the CA had before enrollment policies are in a policy named Default, which keeps the ID Windows knows the old policy by, its templates and its credentials. Certificates already issued renew through the new address, and nothing needs to be enrolled again.

Commands on this page use these placeholders:

  • <CLASSIC_URL> - the classic address the client uses now.
  • <NEW_URL> - the Default policy’s address for the same login, from step 1.

1. Find the new address

Log in to PKIaaS.io, choose the CA in the top bar, navigate to Windows (CEP/CES) -> Policies and click the policy named Default. Its Connection tab shows its addresses:

Classic addressNew address
https://cep.pkiaas.io/<CA ID>https://cep.pkiaas.io/policies/<policy ID>/password
https://<CA ID>.mtls.pkiaas.io:4433/Certificatehttps://<policy ID>.mtls.pkiaas.io:4433/policies/<policy ID>/cep

The username and password stay the same. If nobody has the password any more, create a new credential on the policy’s Credentials tab (see Set Up an Enrollment Policy), or click “New password” on the credential’s row. A new password stops the old one at once, on every computer using it.

2. Find where the classic address was added

List the enrollment policies of the computer and of the current user:

Terminal window
Get-CertificateEnrollmentPolicyServer -Scope All -context Machine
Get-CertificateEnrollmentPolicyServer -Scope All -context User

Change the address in the same place it was added. For the computer’s policies, the registry tells which place that was:

  • Under HKLM\SOFTWARE\Policies\Microsoft\Cryptography\PolicyServers: it was added in Local Security Policy or Group Policy. Follow A.
  • Under HKLM\SOFTWARE\Microsoft\Cryptography\PolicyServers: it was added with PowerShell or the Certificates snap-in. Follow B.

A. Local Security Policy or Group Policy

  1. Run secpol.msc, or edit the Group Policy object in Group Policy Management, and go to Security Settings -> Public Key Policies (in a Group Policy object: Computer Configuration › Policies › Windows Settings › Security Settings › Public Key Policies). Open Certificate Services Client - Certificate Enrollment Policy.
  2. Click Add and enter <NEW_URL>. Choose the same authentication type as the classic entry: Username/password for the username and password address, X.509 Certificate for the client certificate address. Click Validate Server, and enter the credential’s username and password, or select the certificate, when asked. Give it the same priority and options as the classic entry, and click Add.
  3. Select the classic entry, click Remove, and click OK.

Do this for each classic entry: a computer that renews with a client certificate usually has both addresses.

B. PowerShell or the Certificates snap-in

Added this way, Windows allows only one address per policy, so remove the classic address first. Adding the new one while the classic one is still there fails with ERROR_BUSY 0x800700aa (“The requested resource is in use”).

For machine certificates that enroll and renew on their own, run these as SYSTEM (see Autoenrollment and Renewal). For a username and password address:

Terminal window
Remove-CertificateEnrollmentPolicyServer -Url <CLASSIC_URL> -context Machine -Confirm:$false
Add-CertificateEnrollmentPolicyServer -Url <NEW_URL> -context Machine -Credential (Get-Credential) -AutoEnrollmentEnabled

For a client certificate address, log in with the computer’s current certificate from this CA:

Terminal window
Remove-CertificateEnrollmentPolicyServer -Url <CLASSIC_URL> -context Machine -Confirm:$false
$cert = Get-Item Cert:\LocalMachine\My\<thumbprint>
Add-CertificateEnrollmentPolicyServer -Url <NEW_URL> -context Machine -Credential (New-Object Microsoft.CertificateServices.Commands.PkiCredential($cert)) -AutoEnrollmentEnabled

For a user’s policy, run the same commands as the user, with -context User.

With the Certificates snap-in, open Manage Enrollment Policies… (see Add the Policy on Windows), remove the classic address, then add the new one.

3. Clear the old policy and check

Windows keeps a copy of each policy. Delete the classic address’s copy and enroll now, in a command prompt running as administrator:

certutil -policyserver "<CLASSIC_URL>" -policycache delete
certutil -pulse

Then, in PKIaaS.io, navigate to Logs. Each time a client loads the policy, the log names the policy and the credential or certificate it logged in with.

If something doesn’t work, see Troubleshooting.