Definition

Use openssl s_client -showcerts with the intended SNI hostname to capture the server-sent list. Use openssl verify with the leaf, untrusted intermediates and an explicit trusted CA bundle to test whether those inputs support a valid path.

Capture the certificates the server actually sends

On an HTTPS endpoint you operate, run openssl s_client -connect tls.example.com:443 -servername tls.example.com -showcerts </dev/null. Use the actual hostname and port. Retain the output, timestamp and address in scope. Identify the first certificate as the leaf and save the other server-sent intermediates separately as PEM.

The printed list records server presentation. A client may build a path using a different order or certificates available locally. A trusted root generally comes from the client trust store, so a server list can omit the root and still support a valid path.

Official sourcesOpenSSL s_client documentation ↗RFC 8446, TLS Certificate message ↗

Verify with a known trust bundle

With OpenSSL 3.5, run openssl verify -show_chain -purpose sslserver -verify_hostname tls.example.com -CAfile trusted-roots.pem -no-CApath -no-CAstore -untrusted presented-intermediates.pem leaf.pem. Use the approved trust anchors for the client under review. If the server sent no intermediates, omit the -untrusted option and its file.

The -untrusted file supplies certificates that can help construct a path. Keep that file distinct from the trusted roots. Adding a missing issuer as a new trust anchor changes the test and can hide the reason an ordinary client fails.

Record the trust bundle version and outcome. This test evaluates the selected certificate inputs under OpenSSL policy at the time of the check. Test the affected client separately when platform policy or certificate retrieval behavior differs.

Official sourcesOpenSSL verify command ↗OpenSSL certificate verification options ↗RFC 5280, Certification Path Validation ↗

Identify the cause of a verification error

ResultNext check
Unable to get local issuer certificateInspect the server-sent intermediates and confirm the intended root is available. The message alone identifies neither the exact missing certificate nor the cause.
Hostname mismatchVerify the requested hostname against the leaf and confirm the SNI value selected the intended listener.
Certificate has expiredCheck which certificate in the evaluated path is expired, and confirm the verifier clock before replacing the affected chain.
Two clients or addresses disagreeCompare the leaf fingerprint, presented intermediates, client trust bundles and TLS termination points.

Retest the intended service after deployment

Record whether the endpoint serves the intended leaf and whether the client can validate a path. Repeat the check at the other authorized termination points covered by the rollout, particularly when a CDN or load balancer can serve multiple certificate bundles.

Keep certificate revocation checks distinct from path construction. A passing path test under the command above establishes no separate OCSP result. Retain those observations with their timestamps when required by the client policy.

Frequently asked questions

Does OpenSSL -showcerts show a verified chain?

It displays the certificates sent by the server. Perform path and hostname validation with the trust inputs and policy you intend to check.

Should the server send the root certificate?

Clients usually obtain trust anchors independently. Ensure the server sends the intermediates needed by supported clients to build a path to their trusted root.

Why does one client pass while another fails?

They may use different trust stores, know different intermediates, apply different validation rules or connect to a different termination point. Compare their actual certificate evidence and policy.