Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Certificate Troubleshooting

Direct answer

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.

When to use this

Use this when a certificate isn't trusted or a service rejects it.

First 30 seconds

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.

Operational verification

certificate → chain → revocation → name → key

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Windows security
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows security · Windows / Windows Server / PowerShell
Key commandcertutil -verify -urlfetch <file>.cer
Scope / prerequisiteUse this when a certificate isn't trusted or a service rejects it.
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Windows command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • The chain must end at a trusted root on the client.
  • The name the client uses must be in the SAN.
Key checks
  • Get-ChildItem Cert:\LocalMachine\My — machine personal certificates
  • Get-ChildItem Cert:\CurrentUser\My — user personal certificates
  • certutil -verify -urlfetch <file.cer> — chain and revocation check
  • Test-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

ErrorMeaningFix
CRYPT_E_REVOCATION_OFFLINE (0x80092013)CRL/OCSP not reachablePublish CRL, fix DNS/firewall/proxy for the CDP URL
CRYPT_E_REVOKEDCertificate revokedReissue
CERT_E_UNTRUSTEDROOTRoot not trustedDeploy root via GPO (Trusted Root Certification Authorities)
CERT_E_CHAININGIntermediate missingInstall intermediate or fix AIA URL
CERT_E_EXPIREDExpired cert, or expired CRLRenew; publish a fresh CRL before Next Update
CERT_E_CN_NO_MATCHName not in SANReissue 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

CheckCommand
CA running and reachablecertutil -ping -config "ca01\Corp Issuing CA 01"
Current CRL validitycertutil -CRL (publish), certutil -dump <crl-file> (Next Update)
Template permissionsCertificate 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.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
SymptomLikely cause
Service cannot use certificateNo private key, or service account lacks key permission
"Chain could not be built"Missing intermediate or root not trusted
Revocation check failedCDP/AIA URLs unreachable
Auto-enrolment not workingTemplate permissions, CA unreachable, GPO not applied

Events in CertificateServicesClient-AutoEnrollment and CAPI2/Operational (enable it) show detailed chain-building errors.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows security current

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%
Confirmation

Confirm action

Continue?