Windows
Certificates
Cheat sheet · https://pcornel.dk/topic.php?topic=376
Answer
Certificate Services, templates, enrollment, trust chains, revocation and certificate troubleshooting.
Remember
- Effective state can depend on role installation, service state, registry/policy and domain context
- AD depends critically on DNS, time, replication and secure-channel health
- PowerShell returns objects; inspect properties and error records rather than formatted text alone
- PKI & AD CS must be verified from intended configuration through effective state, dependency health and consumer-visible outcome.
- Record platform/version, scope, timestamp and the evidence boundary before remediation.
First checks
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
Commands
certmgr.msc- Open the certificate store of the current user.
certlm.msc- Open the certificate store of the local computer.
certutil- Inspect, verify and manage certificates and CA databases.
Verify in this order
certificate + private key → chain to trusted root → revocation → used by the service
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.
PKI & AD CS evidence chain
| Boundary | Question | Evidence | Does not prove |
|---|---|---|---|
| Definition | What is configured or intended? | running configuration / controller policy | live operation |
| Local state | Is the feature active at the expected scope? | certutil -store My | remote success |
| Counters | Did controlled traffic or an event reach this stage? | scoped counters/timestamps | complete return path |
| Next boundary | What consumes or transports this state? | computer/domain context → effective policy/configuration → role/service → dependency/replication/network → event evidence → user/service outcome | application success |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=376