Troubleshooting
Start with the CA log
Most refusals are explained in the CA’s log, even when Windows shows only a generic error. Log in to PKIaaS.io, choose the CA in the top bar and open Logs. Lines from Windows enrollment name the policy, the credential and the template, never a username or password. For example:
wrong password for credential "<name>"- the username is known but the password is wrong.no credential of the policy has the username- the username doesn’t belong to any of the policy’s credentials.credential "<name>" is disabledorcredential "<name>" has expired- turn it on, or change its Expires, on the policy’s Credentials tab.too many failed logins from this IP addressorfor this username- logins are refused for a while after repeated failures; the line says for how long.template <name> doesn't allow key-based renewal- expected when the template doesn’t allow key-based renewal: Windows then renews with a client certificate login (see Autoenrollment and Renewal).logged in; sent the policy with N templates- a successful login; N is how many templates the client was offered.
The Windows (CEP/CES) -> Issuances page lists the certificates Windows clients received, with the policy, credential, template and login method of each.
Error codes
| Error | Meaning |
|---|---|
WS_E_ENDPOINT_ACCESS_DENIED 0x803d0005 | A wrong username or password, or a refused key-based renewal. Read the CA log for which. |
CERT_E_WRONG_USAGE 0x800b0110 | A key-based renewal the template doesn’t allow, or one made before the certificate’s renewal period. |
WS_E_ENDPOINT_UNREACHABLE 0x803d0010, WinHttp 12029 | The address can’t be reached: check the address, DNS, firewalls and proxies. For client certificate logins, port 4433 must be reachable. |
NTE_SILENT_CONTEXT 0x80090022 | No username and password are kept for the account, so autoenrollment can’t log in. For computers, add the policy as SYSTEM; user autoenrollment with a password doesn’t work off-domain (see Autoenrollment and Renewal). |
ERROR_NO_SUCH_DOMAIN 0x8007054b | Normal on a computer that isn’t joined to a domain, and harmless. |
Enrollment debug log
To see what Windows enrollment does, turn on its debug log as administrator:
certutil -setreg -f Enroll\Debug 0xffffffe3Machine and SYSTEM enrollment write to %windir%\CertEnroll.log, user enrollment to %USERPROFILE%\CertEnroll.log. Turn it off again with:
certutil -delreg Enroll\DebugPolicy cache
Windows keeps the policy for the policy’s Refresh interval, so templates or credentials changed in PKIaaS.io may not show on a client until then. To fetch the policy again at once, delete the cached copy:
certutil -policyserver <CEP_URL> -policycache deleteAdd -user for a user’s policy (certutil -user -policyserver <CEP_URL> -policycache delete).
A template isn’t offered
- The policy must offer the template, and the template must be Compatible on the policy’s Templates tab; the tab lists the problems of an incompatible one with how to fix them.
- The template must be for the context you enroll in: Computers for machine certificates, Users for user certificates.
- The credential must be allowed the template: All the policy offers, or the template checked under Only these:.
- The policy must be Enabled.