Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

PKI Troubleshooting

Direct answer

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.

When to use this

Use it as the entry point when something on PKI fails and you need to find the failing layer.

First 30 seconds

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.

Operational verification

client → chain build → validation checks → result

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

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.

Platform / version applicability
Cryptography, PKI and secrets
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCryptography, PKI and secrets · OpenSSL
Key commandopenssl verify -CAfile <ca.pem> <cert.pem>
Scope / prerequisiteUse it as the entry point when something on PKI fails and you need to find the failing layer.
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Security command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Certificate visible ≠ correct certificate selected.
  • Chain builds ≠ validation succeeds.
  • Works on one client ≠ trust/path/status works everywhere.
  • Disabling validation ≠ diagnosis or repair.
Key checks
  • openssl s_client -connect <host>:443 -servername <host> </dev/null — handshake and chain
  • openssl verify -CAfile root.pem -untrusted int.pem leaf.pem — chain
  • certutil -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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCryptography, PKI and secrets current

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%
Terminology layer

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.

Aliases that resolve here
certificate troubleshootingPKI validation failurecertificate chain diagnostics
Embedded reference data

Quick lookup tables

PKI → PKI Troubleshooting proof map

Fast scope, effective cryptographic state, verification and closure boundaries for PKI → PKI Troubleshooting.

BoundaryEstablishDoes not establish
Scope and intentAsset/data/peer, security property, identity/name, protocol and timeDoes not prove algorithm, key, trust or endpoint correctness
Effective cryptographic stateExact version, algorithm/mode/parameters, key/certificate/path and negotiated resultConfiguration or object presence does not prove correct use
Verification outcomePositive, negative, tamper, expiry/revoke and failure tests correlated with evidenceOne success does not prove every peer, client, path or lifecycle stage
ClosureOriginal operation succeeds; old/unsafe state is retired and regression checks passAdministrative workflow completion alone is not closure
Confirmation

Confirm action

Continue?