Skip to content

Instantly share code, notes, and snippets.

@Xunnamius
Created May 6, 2020 16:58
Show Gist options
  • Select an option

  • Save Xunnamius/2595f4a45709f7294a64ba1a2a5b37d6 to your computer and use it in GitHub Desktop.

Select an option

Save Xunnamius/2595f4a45709f7294a64ba1a2a5b37d6 to your computer and use it in GitHub Desktop.
How to get fingerprints of public keys in pem files
sudo openssl x509 -noout -fingerprint -md5 -inform pem -in /some/path/fullchain.pem
sudo openssl x509 -noout -fingerprint -sha1 -inform pem -in /some/path/fullchain.pem
sudo openssl x509 -noout -fingerprint -sha256 -inform pem -in /some/path/fullchain.pem
@Melebius
Copy link

Melebius commented Jan 8, 2026

sudo is not necessary! (Unless the current user cannot access the given path.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment