Created
May 12, 2015 20:05
-
-
Save tyrelsouza/23d8e12bd240840d6389 to your computer and use it in GitHub Desktop.
Get GPG keys from Keybase
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 | |
keybase list-tracking | while read -r line ; do | |
if [ -n "$line" ]; then | |
curl -s https://keybase.io/$line/key.asc | gpg --with-fingerprint | sed -n 's/.*=//p' | awk 'NF>1{print $(NF-3)$(NF-2)$(NF-1)$(NF) }' | while read -r key; do | |
echo "Trying $line's key: $key" | |
gpg --recv-key $key | |
echo | |
done | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment