Last active
August 27, 2021 16:22
-
-
Save Integralist/975d099da6aad2373b225b7713d20a7c to your computer and use it in GitHub Desktop.
[Export GPG Private Key] #gpg #private #key #export #backup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reference: | |
# man gpg | |
KEY_ID=$(gpg --list-keys Pass | head -n 2 | tail -n 1 | cut -d ' ' -f 7) | |
gpg --list-secret-keys Pass | |
gpg --export-secret-keys <KEY_ID> > private.key | |
gpg --armor --export-secret-keys <KEY_ID> > private.key.asc | |
gpg --output fullbackup.pgp --armor --export-secret-keys --export-options export-backup Pass | |
# if you're not comfortable with the security of your chose passphrase | |
# then consider making a paper backup which can be stored in a fireproof safe | |
# https://www.jabberwocky.com/software/paperkey/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment