Pcornel
Windows · Certificates

Certificate Stores

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

Back to the Topic

Answer

Windows certificate stores hold certificates by purpose — Personal, Trusted Root, Intermediate and others — separately for the user, the computer and services. Browse them with certlm.msc, certmgr.msc or Cert:\ in PowerShell.

Remember

  • PowerShell's Cert:\LocalMachine and Cert:\CurrentUser drives list stores.

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 -store My
Read current PKI & AD CS state for a bounded verification step.

Verify in this order

certificates in stores per scope

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=3218

Confirmation

Confirm action

Continue?