Use it as the entry point when something on PKI fails and you need to find the failing layer.
PKI Troubleshooting
PKI Troubleshooting traces an exact relying-party failure through certificate selection, private-key pairing, path construction, trust anchor, identity, usage, constraints, time and revocation before changing trust or bypassing validation.
1. Common errors: expired, name mismatch, missing intermediate, untrusted root, revocation unreachable, wrong EKU.
2. Read the exact error.
3. Check client trust store.
4. Check time.
5. Fix and verify externally.
client → chain build → validation checks → result
Context & applicabilityCommon mistakes · platform/version boundaries
Fixing one certificate error shows that boundary changed, but it does not show other clients, paths, status checks, key custody or lifecycle automation are healthy.
Suspicious evidence: wrong SNI certificate, missing intermediate, stale trust store, key mismatch, expired/not-yet-valid, wrong SAN/EKU, path constraint, OCSP/CRL outage, clock skew or trust-all workaround.
Operational reference
Fast context before you go deeper.
openssl verify -CAfile <ca.pem> <cert.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 Verification path Verify boundary
symptom/client/time → certificate selection/key pair → chain supply/path build → local trust/policy → name/purpose/constraints/time → revocation/status → original operation
Step 2 Verify PKI with exact certificate identity, trusted chain, revocation status and key-backed use Verify boundary
Verify PKI by reading the exact certificate serial/thumbprint and expect subject/SAN, EKU and validity dates to match the workload. Build the chain from the consuming host and expect every CA state Healthy with revocation status Good and validation errors 0 where required, then perform the original TLS, signing or authentication operation and confirm the matching private key is used. A valid certificate chain shows trust for that validation policy, but it does not show the certificate names the intended service or that the application can access its private key.
Step 3 Known-good, broken and when it is fixed Verify boundary
Known-good means the original client builds the intended chain to an approved trust anchor, validates identity/usage/time/revocation under the required policy, and the service shows possession of the matching private key. For enrollment, verify renewal/restart/binding behavior. A syntactically valid certificate or successful CA issuance does not show the relying application selected or trusted it.
Step 4 Branch PKI faults at enrollment, certificate identity, chain construction, revocation and key access Narrow the fault
If PKI enrollment fails, inspect template or profile permission, request attributes and CA disposition first. If issuance succeeds but an application rejects the certificate, verify SAN/subject identity, EKU and validity time. If identity is correct but chain validation fails, inspect intermediate/root availability and the exact trust path. If revocation status is Unknown or Failed, query CRL/OCSP reachability and freshness. If the chain is valid but TLS signing fails, verify the service can access the matching private key before reissuing anything.
Step 5 Native failure isolation and next-check logic Narrow the fault
Capture the exact certificate chain and validation error from the failing client. Check subject/SAN, EKU/key usage, validity, issuer chain, trust anchor and revocation reachability in that client's context. For server-side selection issues, verify the private key is present and the service binding points to the intended certificate. For enrollment, separate CSR generation, template authorization and CA issuance. Do not import a root into trusted stores merely to make an error disappear without validating its ownership and policy.
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 visible ≠ correct certificate selected.
- Chain builds ≠ validation succeeds.
- Works on one client ≠ trust/path/status works everywhere.
- Disabling validation ≠ diagnosis or repair.
openssl s_client -connect <host>:443 -servername <host> </dev/null— handshake and chainopenssl verify -CAfile root.pem -untrusted int.pem leaf.pem— chaincertutil -verify -urlfetch cert.cer— Windows chain + revocation
ReferenceWhy it matters1 section · depth on demand
PKI validity depends on chain building, identity, time, revocation and private-key ownership
PKI troubleshooting must separate certificate content from trust evaluation and private-key availability. A certificate can be within its validity window but fail because the client builds a different chain, lacks an intermediate CA, cannot reach CRL/OCSP infrastructure, rejects the intended EKU or cannot access the matching private key. Enrollment and issuance are also distinct from consumption. Record serial number, thumbprint, subject/SAN, issuer, EKU, chain path and key owner before replacing a PKI certificate.
ReferenceHow it works1 section · depth on demand
How it works
PKI validation depends on leaf certificate identity/usage, complete chain construction, trust anchors, signature algorithms, validity times and revocation policy. Different clients can build different chains from the same server presentation because their trust stores and cached intermediates differ. Enrollment additionally depends on template/profile permissions, CSR key ownership and CA issuance policy. A certificate being present is not equivalent to the application selecting the correct private key/certificate pair.
ReferenceImportant terms & boundaries1 section · depth on demand
What this shows and what it does not
Fixing one certificate error shows that boundary changed, but it does not show other clients, paths, status checks, key custody or lifecycle automation are healthy.
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 PKI → PKI Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc5280 · 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
PKI → PKI Troubleshooting proof map
Fast scope, effective cryptographic state, verification and closure boundaries for PKI → PKI Troubleshooting.
| Boundary | Establish | Does not establish |
|---|---|---|
| Scope and intent | Asset/data/peer, security property, identity/name, protocol and time | Does not prove algorithm, key, trust or endpoint correctness |
| Effective cryptographic state | Exact version, algorithm/mode/parameters, key/certificate/path and negotiated result | Configuration or object presence does not prove correct use |
| Verification outcome | Positive, negative, tamper, expiry/revoke and failure tests correlated with evidence | One success does not prove every peer, client, path or lifecycle stage |
| Closure | Original operation succeeds; old/unsafe state is retired and regression checks pass | Administrative workflow completion alone is not closure |