Use it when the symptom is “Certificate Failure”: work through the layers in order and stop at the first one that fails.
Certificate Failure
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.
1. Certificate failures: expired, wrong name, missing chain, untrusted root, revoked/unreachable CRL, wrong EKU.
2. Read the exact error.
3. Fix the certificate, not the validation.
4. Check clocks.
5. Automate renewal.
cert → chain → time → name → revocation
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
openssl verify -CAfile <ca.pem> <certificate.pem>Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Evidence path Verify boundary
presented certificate → identity/purpose match → validity/algorithm constraints → chain/intermediates → trust anchor → revocation → private-key binding/access → application validation
Healthy evidence: Healthy evidence shows the intended certificate identity/purpose, validity, chain, trust anchor, revocation state and private-key/application binding all agree with successful validation.
Step 2 Telling causes apart Verify boundary
Known-good for openssl verify -CAfile <ca.pem> <certificate.pem> is exit code 0 with an OK result for the exact certificate and trust bundle, followed by the original certificate-dependent workload succeeding. Broken state is a deterministic verification error such as unable-to-get-issuer, expired/not-yet-valid or signature failure. This result shows chain validation against the supplied CA file only, but it does not show hostname matching, revocation status, private-key availability or successful TLS/application authorization.
Step 3 Fault isolation and next checks Narrow the fault
Suspicious evidence: Suspicious evidence includes SAN mismatch, expired/not-yet-valid certificate, missing intermediate, untrusted root, revocation lookup failure, wrong EKU, inaccessible private key or stale binding.
A certificate validation error shows one certificate path did not satisfy the verifier, but it does not show whether the certificate, chain, trust store, revocation path, key access or application binding is at fault.
Step 4 Observation-driven branch and next-check logic Narrow the fault
Identify the exact certificate, expected identity and trust store used by the failing client. Run openssl verify -CAfile <ca.pem> <certificate.pem> and inspect the returned chain/error. If chain construction fails, locate the missing/wrong intermediate or trust anchor; if validity fails, inspect clock and notBefore/notAfter; if verification passes but the workload fails, check hostname/SAN, EKU, revocation and the application's actual trust store rather than replacing the certificate immediately. Compare the presented certificate fingerprint with the intended deployment to catch stale endpoints.
Step 5 Common mistakes Narrow the fault
- Incomplete chain or expired intermediate.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
openssl x509 -in cert.pem -noout -dates -subject -ext subjectAltName— basicsopenssl verify -CAfile ca.pem -untrusted int.pem cert.pem— chaincertutil -verify -urlfetch cert.cer— revocation (Windows)
ReferenceWhat it is1 section · depth on demand
Core failure model
Capture the exact presented certificate and purpose, then trace subject/SAN identity, validity time, key usage/EKU, chain/intermediates, trust store, revocation evidence, private-key access and application binding.
ReferenceHow it works1 section · depth on demand
How it works and how it fails
Certificate Failure separates certificate syntax, chain construction, trust-anchor selection, validity, key usage/name constraints and the application's own certificate policy. openssl verify evaluates a supplied certificate against a selected CA file, so the trust store used by that command explicitly owns that decision. A certificate can verify cryptographically yet still be unusable for TLS because hostname, EKU, revocation or application policy is evaluated later by a different consumer.
ReferenceImportant terms & boundaries1 section · depth on demand
What this shows and what it does not
A certificate validation error shows one certificate path did not satisfy the verifier, but it does not show whether the certificate, chain, trust store, revocation path, key access or application binding is at fault.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security Troubleshooting → Certificate Failure. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.nist.gov/cyberframework · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Certificate Failure troubleshooting/evidence map
Fast scope, policy, enforcement, telemetry and verification boundaries for Certificate Failure.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Scope / baseline | Failing case and known-good comparison are reproducible | Symptom changes across users, devices, paths or time without explanation |
| Policy / decision | Authoritative state explains the expected decision | Stale, conflicting or unexpected policy/context changes the decision |
| Enforcement / telemetry | Runtime action and same-window telemetry agree | Decision, enforcement and logs disagree or coverage is missing |
| Verification | Original test and security regression both pass | Temporary recovery, bypass or adjacent regression remains |