ssl-guides 2026-12-02 ⏱ 4 min read

What Is a Certificate Fingerprint?

What Is a Certificate Fingerprint?

A certificate fingerprint, also called a thumbprint, is a hash of the entire certificate in its binary form. Change one bit anywhere in the certificate and the fingerprint changes completely. That makes it a handy short label for one exact certificate.

Certificate fingerprint: what it is and is not

The fingerprint is not stored inside the certificate. It is calculated from the certificate by whoever needs it. Common hash functions are SHA-256 and the older SHA-1. Use SHA-256 for anything new. SHA-1 is no longer safe for security checks, though some old tools still display it.

A fingerprint also is not the same as a serial number. The serial number is a field the CA writes into the certificate, covered in what a certificate serial number is. The fingerprint is derived from all fields together.

Certificate fingerprint: get it with OpenSSL

From a live server:

echo | openssl s_client -connect example.com:443 \
  -servername example.com \
  | openssl x509 -noout -fingerprint -sha256

From a file on disk:

openssl x509 -in cert.pem -noout -fingerprint -sha256

The output is 32 byte pairs separated by colons. Compare it character by character, or paste both values into a diff. Do not compare only the first few characters.

When fingerprints are useful

UseHow the fingerprint helps
Confirming a certificate out of bandA colleague reads you the SHA-256 value and you compare it with what you see
Certificate pinningAn app trusts only certificates that match a stored hash
Inventory and auditsA unique ID for each certificate across many servers
Self-signed and internal certificatesVerify trust manually when no CA vouches for it
Incident responseSearch logs or Certificate Transparency for one certificate

Fingerprints and certificate renewal

Every renewal creates a new certificate, so the fingerprint changes each time, even if the key and names stay the same. If an app pins the certificate hash, it will break on the next renewal. That is why pinning the public key, or not pinning at all, is the safer option for most teams. Read what certificate pinning is before deciding to use it.

Public key hash versus certificate hash

Some systems use the hash of the public key rather than the whole certificate. This value survives a renewal when the same key is reused. You can calculate it like this:

openssl x509 -in cert.pem -pubkey -noout \
  | openssl pkey -pubin -outform der \
  | openssl dgst -sha256

Know which of the two your tool expects. Mixing them is a common reason a "correct" fingerprint fails to match.

Do not rely on a fingerprint you got from the same channel

A fingerprint only adds trust if you receive it through a different, trusted path. If an attacker can alter the web page and also the fingerprint printed on it, the comparison proves nothing. For public websites, the CA chain does this job for you. You can inspect a full certificate and its details with the certificate decoder.

Quick reference

GoalCommand
SHA-256 fingerprint of a fileopenssl x509 -noout -fingerprint -sha256 -in cert.pem
SHA-1 fingerprint (legacy tools only)openssl x509 -noout -fingerprint -sha1 -in cert.pem
All details of a certificateopenssl x509 -noout -text -in cert.pem

Windows shows the same value as the "Thumbprint" field in the certificate viewer. Browsers show fingerprints in the certificate details panel, under the Fingerprints heading.

More on inspecting certificates

For a wider look at what you can read from a live site, see testing SSL configuration with OpenSSL and the certificate lookup tool.

Fingerprints in everyday tools

SSH shows a host key fingerprint the first time you connect, and asks you to confirm it. Messaging apps show a similar "safety number". Certificate fingerprints serve the same purpose: a short value that two people can compare to detect a swapped key. The habit is worth building. When you add a new internal service, record its fingerprint in your documentation so the next engineer can verify it.

For monitoring, many teams alert when the fingerprint of a public certificate changes unexpectedly, since it can mean an unplanned reissue. Pair this with a Certificate Transparency lookup to see every certificate issued for your domain.

Related reading: the certificate chain, what a certificate authority is and testing with OpenSSL.

Frequently Asked Questions

Is a fingerprint a secret?

No. It is public and safe to share, which is why support teams ask for it. It identifies a certificate without revealing the private key.

Why did the fingerprint change after renewal?

Every new certificate is a different object, even with the same key and names, so the hash changes. Compare the public key hash when you need to know the key stayed the same.

SHA-1 or SHA-256?

SHA-256. SHA-1 collisions can be built, so it is no longer safe for a security check, even though some old tools still print it.

🔒 Test Your Website SSL Certificate Now
Run Free SSL Check →

✅ Post-Installation Verification & SEO Checklist

After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:

  • Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
  • Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
  • Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
  • Confirm both root and www versions resolve cleanly to one canonical HTTPS URL.
  • Verify your HTTPS property and sitemap.xml inside Google Search Console and Bing Webmaster Tools.
Technically Reviewed by TryFreeSSL Security Team
Last updated: 2026-12-05
About Us →

Free SSL Certificates, Live SSL Checker & CSR Generator

Issue trusted Let's Encrypt SSL certificates in 60 seconds with zero server setup.

Related Articles

🤖 TryFreeSSL AI Assistant