Pcornel
Windows

Certificates

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

Back to the Topic

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

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

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?certutil -store Myremote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?computer/domain context → effective policy/configuration → role/service → dependency/replication/network → event evidence → user/service outcomeapplication success

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

Confirmation

Confirm action

Continue?