Created
March 14, 2018 15:43
-
-
Save calebcase/1d524e396ea672a19fdb79b21c4c97f6 to your computer and use it in GitHub Desktop.
GPG Fingerprint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
needle=${1?You must provide an name or email to search for.} | |
gpg2 --list-keys --fingerprint "$needle" | | |
grep 'Key fingerprint = ' | | |
sed -r 's/Key fingerprint = (.+)$/\1/' | | |
tr -d ' ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment