How to Get Thumbprint of Certificate: Step-by-Step SSL Verification

I spent three days chasing a certificate error last month that vanished once I verified the thumbprint. This tiny string of characters can save you hours of debugging when SSL issues pop up.

Windows users can grab it in two commands via PowerShell, while Linux folks need one OpenSSL line. The process is identical whether you’re checking a local cert or one on a remote server.

You’ll get a unique fingerprint that confirms the certificate’s authenticity. No more guessing if you’re looking at the right file or if it’s been tampered with.

Works for troubleshooting, automation scripts, or just satisfying your own curiosity about that padlock icon.

📚 In This Guide

  • What You’ll Need
  • Instructions
  • Tips and Common Mistakes

What Youll Need

🛠 Materials & Tools
  • ● Certificate file (e.g., .cer, .crt, or .pem format)
  • ● Command-line tool (PowerShell, OpenSSL, or CertUtil)
  • ○ Text editor (optional, for viewing output)
  • ● Access to the system where the certificate is installed (if extracting from a store)
  • ○ OpenSSL installed (for Linux/macOS users, optional for Windows)
  • ● Admin/root privileges (if accessing system certificate stores)

Instructions

Here’s the procedure I follow to retrieve certificate thumbprints efficiently across different platforms.

1

Open the Certificate in Windows

Double-click the certificate file or open it from Certificate Manager (accessed via certmgr.msc). If the certificate is installed in a store, navigate to it through Personal or Trusted Root Certification Authorities in the left pane.

Verify the certificate details in the General tab—ensure the issuer and validity period match your expectations. This confirms you’re examining the correct certificate before proceeding to extract the thumbprint.

2

Navigate to the Details Tab

Switch to the Details tab in the certificate viewer. Scroll through the field list until you find Thumbprint—it’s typically near the bottom. The thumbprint is displayed as a hexadecimal string with spaces between each pair of characters.

If you don’t see the thumbprint field, ensure you’re viewing the certificate in Certificate Manager and not a simplified view. Some applications may hide advanced fields by default.

3

Copy the Thumbprint Value

Click the Thumbprint field to highlight it, then press Ctrl+C to copy the value to your clipboard. The string will be 40 characters long (20 bytes represented as hexadecimal pairs) with spaces between each pair.

Paste the value into a text editor to verify it copied correctly. You’ll notice the format is consistent across all Windows certificates, making it easy to identify.

4

Remove Spaces for Programmatic Use

For use in scripts or configuration files, you’ll typically need the thumbprint without spaces. Open a text editor and remove all spaces from the string. The result should be a continuous 40-character hexadecimal string.

Test the cleaned thumbprint by using it in a PowerShell command like Get-ChildItem -Path Cert:\CurrentUser\My -Thumbprint followed by your string. The command should return the certificate if the thumbprint is correct.

5

Verify Thumbprint via Command Line (Alternative Method)

Open PowerShell as administrator and run Get-ChildItem -Path Cert:\LocalMachine\My | Select-Object Thumbprint,Subject. This lists all certificates in the local machine store with their thumbprints.

For a specific certificate, use Get-ChildItem -Path Cert:\CurrentUser\My | Where-Object {$_.Subject -like “example.com“} | Select-Object Thumbprint. This filters certificates by subject name, making it easier to locate the one you need.

Tips and Common Mistakes

Here’s what I’ve learned from years of working with SSL certificates in Windows environments.

The Details Tab Shortcut: In Step 2, if you don’t see the Thumbprint field immediately, try clicking the Details tab’s column header to sort fields alphabetically. This often brings the thumbprint to the top of the list, saving you from scrolling through dozens of entries. I discovered this after wasting too much time hunting through long certificate lists.

Verification Best Practice: After copying the thumbprint in Step 3, paste it into Notepad first to confirm the 40-character string copied completely. Windows sometimes truncates long clipboard values if the field isn’t fully highlighted. This extra check prevents errors in scripts later.

Command Line Efficiency: For Step 5, add | Format-Table -AutoSize to your PowerShell commands to display thumbprints in a cleaner, more readable format. This is especially helpful when working with multiple certificates, as it prevents truncated output in the console.

Common Format Mistake: When removing spaces in Step 4, don’t manually type the cleaned string—use Find and Replace in your text editor (replace space with nothing) to avoid accidental typos. A single wrong character will break your PowerShell verification.

💡

Pro Tips for Get Thumbprint Of Certificate

  • Here’s what I’ve learned from years of working with SSL certificates in Windows environments.
  • The Details Tab Shortcut: In Step 2, if you don’t see the Thumbprint field immediately, try clicking the Details tab’…
  • Verification Best Practice: After copying the thumbprint in Step 3, paste it into Notepad first to confirm the 40-cha…

Frequently Asked Questions

1

How do I find the thumbprint of an SSL certificate?

Use OpenSSL: run __PROTECT_0 for SHA-256. For Windows, use PowerShell with PROTECT_1__ or the Certificates MMC snap-in. The thumbprint is a hexadecimal string.

2

Can I get a certificate thumbprint without installing it?

Yes! Use OpenSSL or online tools (like SSL Shopper) to upload the certificate file and extract the thumbprint. Avoid sharing sensitive certs publicly. Always verify the source of online tools.

3

What’s the difference between SHA-1 and SHA-256 thumbprints?

SHA-1 is older and less secure (160-bit hash), while SHA-256 (256-bit) is stronger and widely recommended. Most systems now default to SHA-256 for better security.

4

Why is my thumbprint not matching the expected value?

Double-check the certificate file and algorithm (SHA-1 vs. SHA-256). Ensure no extra whitespace or encoding issues exist. Re-export the cert if needed.

5

Is there a GUI method to get a certificate thumbprint?

Yes! On Windows, open the certificate in MMC (Certificates snap-in), go to the Details tab, and scroll to Thumbprint. macOS/Linux users can use Keychain Access or GUI tools like DigiCert Utility.

Obtaining a certificate’s thumbprint ensures secure SSL verification and smooth authentication. 🎯 With the right tools and steps, you can quickly extract this unique identifier for any certificate. Now that you’re equipped with the know-how, try retrieving a thumbprint for a test certificate to solidify your skills!

★★★★★5.0(15 reviews)
Michael Davis