Use this when a certificate isn't trusted or a service rejects it.
Certificate Troubleshooting
Troubleshoot Windows certificates by checking validity dates, that the private key exists, the full chain to a trusted root, revocation (certutil -verify -urlfetch) and that the name or SAN matches what clients use.
1. certutil -verify -urlfetch <cer> — chain and revocation errors.
2. Name mismatch → SAN.
3. Expired → renew.
4. Private key missing/permissions.
5. CRL/OCSP unreachable → network/proxy.
certificate → chain → revocation → name → key
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
certutil -verify -urlfetch <file>.cerPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Known-good, broken and when it is fixed Verify boundary
Known-good means the intended certificate is in the correct store/context, has its private key when required, builds a valid chain under the applicable revocation policy, matches the requested identity/EKU and is the certificate actually bound/selected by the service. Broken evidence is wrong store, missing key, chain/revocation failure, expired/not-yet-valid time or name/EKU mismatch. Repeat the original TLS/signing/authentication transaction from the affected client. A locally valid certificate viewer chain does not show the application is presenting or using that certificate.
Step 2 Common mistakes Narrow the fault
- Checking the wrong store (user vs machine).
Step 3 Native failure isolation and next-check logic Narrow the fault
If a TLS/authentication operation fails, first capture the certificate actually presented/selected, not merely the one expected. If the chain is untrusted, inspect the chain path and missing/invalid intermediate/root; if revocation is the failure, test the referenced CRL/OCSP path from the service context. If the certificate is valid but unusable, inspect private-key access, EKU and service binding. For name errors, compare the requested DNS identity with SAN entries. Avoid importing roots or disabling revocation as a shortcut; use the specific chain error to choose the next boundary.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- The chain must end at a trusted root on the client.
- The name the client uses must be in the SAN.
Get-ChildItem Cert:\LocalMachine\My— machine personal certificatesGet-ChildItem Cert:\CurrentUser\My— user personal certificatescertutil -verify -urlfetch <file.cer>— chain and revocation checkTest-Certificate -Cert <cert> -Policy SSL -DNSName <name>— validate for a name
ReferenceHow it works1 section · depth on demand
How it works
Windows certificate use depends on the correct store/context, certificate/private-key pairing, chain building to a trusted root, validity time, EKU/key usage, name/SAN matching, revocation retrieval and application binding. A certificate visible in certmgr.msc may be in the user store while a service runs under the computer/service account and cannot use it. Chain status can differ between hosts because intermediate caches, trust roots and CRL/OCSP reachability differ. Preserve thumbprint, subject/SAN, serial, store location, private-key availability and the exact consuming service before replacing certificates.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Verify the whole chain the way Windows does
C:\> certutil -verify -urlfetch C:\Temp\web01.cer
Issuer: CN=Corp Issuing CA 01
Subject: CN=web01.corp.example.com
...
---------------- Certificate AIA ----------------
Verified "Certificate (0)" Time: 0
[0.0] http://pki.corp.example.com/aia/Corp-Issuing-CA-01.crt
---------------- Certificate CDP ----------------
Failed "CDP" Time: 0
Error retrieving URL: The server name or address could not be resolved 0x80072ee7 (WinHttp: 12007 ERROR_WINHTTP_NAME_NOT_RESOLVED)
[0.0] http://crl.corp.example.com/Corp-Issuing-CA-01.crl
ERROR: Verifying leaf certificate revocation status returned The revocation function was unable to check revocation because the revocation server was offline. 0x80092013 (-2146885613 CRYPT_E_REVOCATION_OFFLINE)
The certutil reference documents -verify with -urlfetch (retrieve and verify AIA certificates and CDP CRLs) and -URL for checking certificate or CRL URLs interactively.
Common errors
| Error | Meaning | Fix |
|---|---|---|
| CRYPT_E_REVOCATION_OFFLINE (0x80092013) | CRL/OCSP not reachable | Publish CRL, fix DNS/firewall/proxy for the CDP URL |
| CRYPT_E_REVOKED | Certificate revoked | Reissue |
| CERT_E_UNTRUSTEDROOT | Root not trusted | Deploy root via GPO (Trusted Root Certification Authorities) |
| CERT_E_CHAINING | Intermediate missing | Install intermediate or fix AIA URL |
| CERT_E_EXPIRED | Expired cert, or expired CRL | Renew; publish a fresh CRL before Next Update |
| CERT_E_CN_NO_MATCH | Name not in SAN | Reissue with the correct SAN (CN alone is ignored by modern clients) |
Private key problems
certutil -store My web01.corp.example.com # "Encryption test passed" proves key access
certutil -repairstore My <serial-number> # re-link certificate and key
CA-side checks
| Check | Command |
|---|---|
| CA running and reachable | certutil -ping -config "ca01\Corp Issuing CA 01" |
| Current CRL validity | certutil -CRL (publish), certutil -dump <crl-file> (Next Update) |
| Template permissions | Certificate Templates console → Security (Enroll/Autoenroll) |
Expiry is the most common incident
Inventory expiring certificates across machines (Get-ChildItem Cert:\LocalMachine\My | Where NotAfter -lt (Get-Date).AddDays(30)) and include CA certificates and CRL publication in monitoring — an expired CRL breaks validation for every certificate the CA issued.
*The certificate verification example illustrates a failed CDP lookup; it is not an actual certificate-chain validation trace.*
Method
Certificate troubleshooting on Windows usually concerns missing private keys, untrusted chains, expired certificates, revocation checks or failed auto-enrolment.
Get-ChildItem Cert:\LocalMachine\My | Select-Object Subject, NotAfter, HasPrivateKey, Thumbprint
certutil -verify -urlfetch server.cer # chain + CRL/OCSP reachability
certutil -store My
certutil -pulse # trigger auto-enrolment
gpupdate /force
| Symptom | Likely cause |
|---|---|
| Service cannot use certificate | No private key, or service account lacks key permission |
| "Chain could not be built" | Missing intermediate or root not trusted |
| Revocation check failed | CDP/AIA URLs unreachable |
| Auto-enrolment not working | Template permissions, CA unreachable, GPO not applied |
Events in CertificateServicesClient-AutoEnrollment and CAPI2/Operational (enable it) show detailed chain-building errors.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Certificates → Certificate Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/ · confidence 94%