Created
December 1, 2019 23:10
-
-
Save cota/7d4e3e111343133f7aab38082c1898b9 to your computer and use it in GitHub Desktop.
export/import a GPG key
This file contains hidden or 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
# Export a specific `[email protected]` key in an encrypted (i.e. password-protected) file `mykey.sec.asc` | |
gpg --armor --export-secret-keys [email protected] | gpg --armor --symmetric --output mykey.sec.asc | |
# Import the key in `mykey.sec.asc`. `gpg` will ask for the password used when exporting. | |
gpg --no-use-agent --output - mykey.sec.asc | gpg --import |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment