Pcornel
Security · Security Troubleshooting

Certificate Failure

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

Back to the Topic

Answer

Certificate Failure isolates whether a certificate-based trust or authentication path fails because of identity matching, validity, chain building, trust anchors, revocation, key possession or application usage.

Remember

  • Certificate present ≠ certificate valid for this identity or purpose.
  • Valid dates ≠ trusted chain; issuer/intermediate/trust-anchor and policy checks remain separate.
  • Trusted chain ≠ private key available to the service or client.
  • Replacing a certificate ≠ proving why validation failed; preserve the original chain and validation error first.

First checks

  • openssl x509 -in cert.pem -noout -dates -subject -ext subjectAltName — basics
  • openssl verify -CAfile ca.pem -untrusted int.pem cert.pem — chain
  • certutil -verify -urlfetch cert.cer — revocation (Windows)

Commands

openssl verify -CAfile <ca.pem> <certificate.pem>
Read-only/validation observation for certificate path validation against an explicitly selected CA bundle.
openssl verify

Verify in this order

cert → chain → time → name → revocation

Where it usually breaks

First mismatch in signal/report → evidence preservation → scoping/analysis → containment → eradication → recovery → validation/lessons learned; preserve identity/policy/pre-state before mutation.

Certificate Failure troubleshooting/evidence map

BoundaryHealthy evidenceSuspicious evidence
Scope / baselineFailing case and known-good comparison are reproducibleSymptom changes across users, devices, paths or time without explanation
Policy / decisionAuthoritative state explains the expected decisionStale, conflicting or unexpected policy/context changes the decision
Enforcement / telemetryRuntime action and same-window telemetry agreeDecision, enforcement and logs disagree or coverage is missing
VerificationOriginal test and security regression both passTemporary recovery, bypass or adjacent regression remains

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

Confirmation

Confirm action

Continue?