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
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
- Choose a file, or paste a PEM certificate or text (priority: file, certificate, text).
- Enter the vendor's published hash for comparison (colons, spaces and case do not matter).
- 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
| Input | Value |
|---|---|
| PEM 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
| Input | Value |
|---|---|
| Text | |
| Expected hash | ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad |
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
- PEM Certificate DecoderDecodes the PEM certificate you paste in your browser only; it does not connect to any server.
- SSH Public Key Fingerprint and InventoryDecodes SSH public keys in the browser and produces the same SHA256 fingerprint as ssh-keygen -lf.
Related service: System and Server Hardening