Calculate the expected fingerprint from the public leaf certificate. Connect with the intended SNI hostname, calculate the SHA-256 fingerprint of the first certificate in the server's presented list, and compare the two values. Record the observation time and address with the result.
Calculate the expected and observed fingerprints
- Read the intended public certificate
Run openssl x509 -in expected-leaf.pem -noout -sha256 -fingerprint. If your file is a PEM bundle, confirm the first certificate is the intended leaf. The fingerprint hashes the DER encoding of the certificate, including its signature.
- Print the served leaf fingerprint
For an HTTPS service you operate, run openssl s_client -connect tls.example.com:443 -servername tls.example.com -showcerts </dev/null | openssl x509 -noout -sha256 -fingerprint. Replace the example hostname with the authorized endpoint. Check command errors before using the result.
- Compare the full values
Normalize case and colon separators, then compare all 64 hex digits. Use the same digest and make sure both values refer to the leaf. Record the expected and observed values, target, address if known and observation time.
Diagnose a fingerprint mismatch
| What you see | What to check |
|---|---|
| Certificate on disk is new, but the public leaf is old. | Confirm which service terminates public TLS, then inspect its certificate attachment and reload or deployment status. |
| A direct address connection serves a different certificate. | Keep the intended hostname in -servername. Check that the address serves that hostname and belongs to the rollout you are verifying. |
| Some connections match and others differ. | Investigate multiple edges, address families, staged rollout or client-dependent certificate selection. Record each observed profile and fingerprint. |
| The fingerprints match and the browser still reports an error. | Check hostname coverage, certificate dates and the presented intermediate chain against the client's trust policy. |
Record what passed and what needs another check
A full fingerprint match identifies the same encoded leaf for the sampled connection. Renewals normally create a new fingerprint even when they reuse the public key. If the task is to compare public keys across certificates, use a Subject Public Key Info (SPKI) digest and label it explicitly.
Preserve failed connections and unreachable paths. A single match covers the observed connection. Review additional authorized addresses, vantage points or client profiles when the change affects more of the fleet. Verify hostname, validity, chain and revocation according to their own requirements.
Add an external observation to a renewal record
After the approved change, inspect the public leaf from outside the termination point. Save the observation timestamp and fingerprint with the deployment record. If the connection still shows the older certificate, use the rollout plan to identify the edge or listener that furnished it.
Cipher Discovery's public TLS report provides observed certificate evidence for a selected authorized service. Use the report to compare the leaf against the fingerprint you recorded for the change.
Frequently asked questions
Why is my renewed certificate fingerprint different?
The fingerprint covers the whole encoded certificate. Changes to its serial number, validity, extensions or signature can change the value even when the public key stays the same.
Is a leaf certificate fingerprint the same as a public key fingerprint?
A leaf certificate fingerprint hashes the certificate. A public key fingerprint based on SPKI hashes the encoded public key structure and can stay the same across renewals.
Can two clients see different fingerprints for the same hostname?
Yes. Different termination points and certificate selection policies can produce different leaves. Save the observed address, client profile and timestamp with each fingerprint.