Instantly share code, notes, and snippets.

Embed
What would you like to do?
alias gpg2syno='/usr/local/gnupg/bin/gpg2'
# List keys
gpg2syno --list-keys
# Export private key
KEY_ID=12345678
gpg2syno -a --export-secret-keys $KEY_ID > secret-gpg.key
# Export public key
gpg2syno -a --export $KEY_ID > public-gpg.key
# Import pirvate key (includes public key)
gpg2syno --import secret-gpg.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment