Skip to content

Instantly share code, notes, and snippets.

@whoo
Created June 17, 2017 14:43
Show Gist options
  • Save whoo/ff3cbf2bc0888c16ed37b4e3a22e8a65 to your computer and use it in GitHub Desktop.
Save whoo/ff3cbf2bc0888c16ed37b4e3a22e8a65 to your computer and use it in GitHub Desktop.
#!/bin/bash
KEY="$1"
NAME="key"
gpg --armor --export $KEY > $NAME.pub
gpg --armor --export-secret-keys $KEY > $NAME.priv
gpg --armor --gen-revoke $KEY > $NAME.rev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment