Skip to content

Instantly share code, notes, and snippets.

@huettern
Created February 9, 2018 11:54
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 huettern/5902e4cd9f277a78ce40395dd957d478 to your computer and use it in GitHub Desktop.
Save huettern/5902e4cd9f277a78ce40395dd957d478 to your computer and use it in GitHub Desktop.
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