Skip to content

Calculate the Fingerprint for a Certificate

We can run the following command to calculate the fingerprint for a certificate public key.

Bash
openssl x509 -fingerprint -sha256 -in /path/to/certifiacte/pem

It will show the fingerprint like,

Bash
root@Debian-11:~# openssl x509 -fingerprint -sha256 -in /etc/ssl/domain/pub.pem
SHA256 Fingerprint=7C:28:F2:79:D5:65:67:B0:A8:BC:AF:8A:DC:ED:63:9D:7F:D9:63:06:6E:B4:FD:05:4F:F1:1E:F9:7D:7F:1D:BD
...