Skip to content

Instantly share code, notes, and snippets.

@tyrelsouza
Created May 12, 2015 20:05
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 tyrelsouza/23d8e12bd240840d6389 to your computer and use it in GitHub Desktop.
Save tyrelsouza/23d8e12bd240840d6389 to your computer and use it in GitHub Desktop.
Get GPG keys from Keybase
#!/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