Skip to content

Instantly share code, notes, and snippets.

@emalloy
Created November 25, 2016 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emalloy/0446f189ceb7d8b7d0b0182b46f381ff to your computer and use it in GitHub Desktop.
Save emalloy/0446f189ceb7d8b7d0b0182b46f381ff to your computer and use it in GitHub Desktop.
get pkcs8 fingerprint from private key
#!/usr/bin/env bash
openssl pkcs8 \
-in $1 -nocrypt -topk8 -outform DER \
|openssl sha1 -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment