Skip to content

Instantly share code, notes, and snippets.

@facundobianco
Created September 20, 2018 19:48
Show Gist options
  • Save facundobianco/08ccf526a7f8448fbb8c3091fcd827d3 to your computer and use it in GitHub Desktop.
Save facundobianco/08ccf526a7f8448fbb8c3091fcd827d3 to your computer and use it in GitHub Desktop.
Export all public GPG key in your keychain at once
for FNGP in `gpg --list-public-keys | sed -n '/^ /s/.* //p'`
do
gpg --export ${FNGP} >> /tmp/gpg-all-public-keys.asc
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment