Email and Cyber Security · #68

Online Certificate Fingerprint and File Hash

Calculates hashes of a file, text or certificate on your device and compares them with an expected value.

  • Data is processed in your browser and not sent to a server

Tool

Up to 200 MB; it does not leave your device.

Fingerprint is calculated over DER.

Hashed as UTF-8.

SHA-1/256/384/512 hex.

What does this tool do?

You confirm that a downloaded ISO, firmware or backup is intact and unmodified by comparing it with the vendor's published SHA-256. A certificate fingerprint identifies a certificate unambiguously (e.g. in a VPN client or RADIUS). Files are not sent out of the browser.

How to use it

  1. Choose a file, or paste a PEM certificate or text (priority: file, certificate, text).
  2. Enter the vendor's published hash for comparison (colons, spaces and case do not matter).
  3. Press Run.

Fields

File
Up to 200 MB; it does not leave your device.
PEM certificate
Fingerprint is calculated over DER.
Text
Hashed as UTF-8.
Expected hash
SHA-1/256/384/512 hex.

Worked example

InputValue
PEM certificate
-----BEGIN CERTIFICATE-----
MIIBlDCCATmgAwIBAgIFBKGyw9QwCgYIKoZIzj0EAwIwODELMAkGA1UEBhMCVFIx
ETAPBgNVBAoMCE9ybmVrIEFTMRYwFAYDVQQDDA1Pcm5layBUZXN0IENBMB4XDTI2
MDYwMTAwMDAwMFoXDTI3MDYzMDAwMDAwMFowGjEYMBYGA1UEAwwPd3d3LmV4YW1w
bGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEK8NCS68dnBxUmm8rk+QL
81DwaczjsIxsPsfO+u7XorRbKjJ7qAm0iIBXTikCAFdaYj0JdAC8SJNAmCAjSAD7
k6NOMEwwJwYDVR0RBCAwHoIPd3d3LmV4YW1wbGUuY29tggtleGFtcGxlLmNvbTAT
BgNVHSUEDDAKBggrBgEFBQcDATAMBgNVHRMBAf8EAjAAMAoGCCqGSM49BAMCA0kA
MEYCIQDCAHg9Y9nmD3zptt+TJboNIB17g7cO8IZJTOj397R1vgIhALeKsNm+q81S
hBblTgfJX/4IJ6UHpny34TjvoM789eA3
-----END CERTIFICATE-----

Expected result: For the www.example.com test certificate the SHA-256 fingerprint is 0E:8A:3D:…, SHA-1 7B:E3:89:… and the SPKI pin sha256/1tst1ZFJ…

The 'Thumbprint' in the Windows certificate viewer is SHA-1; you see the same value in the SHA-1 row here. Applications that pin certificates usually use the SPKI pin; it stays the same when a certificate is renewed with the same key.

Second scenario

InputValue
Text
abc
Expected hashba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

Expected result: The SHA-256 hash of the text "abc" is ba7816bf…15ad; it matches the expected value.

Method and assumptions

Hashes are calculated with the browser's Web Crypto API (SubtleCrypto.digest). The certificate fingerprint is over the DER encoding; the SPKI pin is the Base64 SHA-256 of the SubjectPublicKeyInfo DER.

Using the result and troubleshooting

If the hash does not match, download again and make sure the source (HTTPS, signed release page) is genuine. A match proves the file equals the vendor's file, not that it is safe.

Limits and common mistakes

  • MD5 is not available in the browser Web Crypto API and is not calculated. SHA-1 is for comparison with legacy systems only. Very large files are read fully into memory.

Frequently asked questions

Why is the SHA-1 fingerprint still shown?

Windows, many firewalls and VPN interfaces still display certificates by SHA-1 thumbprint. It is fine for identification; prefer SHA-256 for security decisions.

Related tools and service

Related service: System and Server Hardening

Cybersecurity online tools · See all online tools