Pcornel
Windows · Certificates

Certificate Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=3224

Back to the Topic

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.

Remember

  • The chain must end at a trusted root on the client.
  • The name the client uses must be in the SAN.

First 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

Commands

certutil -verify -urlfetch <file>.cer
Builds and checks the certificate chain and downloads the CRL and AIA URLs to test revocation checking.

Verify in this order

certificate → chain → revocation → name → key

Where it usually breaks

First mismatch in identity/token/certificate → policy source → security provider/enforcement → target resource → audit/detection evidence; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3224

Confirmation

Confirm action

Continue?