Created
June 24, 2020 14:29
-
-
Save alexengrig/39edb39e6117e8c882f45dd6b29effe2 to your computer and use it in GitHub Desktop.
Export/import gpg key
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
# show key (sec block) | |
gpg --list-keys | |
# export | |
gpg --output <public-key-filename> --armor --export <key> # mykey_pub.gpg | |
gpg --output <secret-key-filename> --armor --export-secret-key <key> # mykey_sec.gpg | |
# import | |
gpg --import <public-key-filename> | |
gpg --allow-secret-key-import --import <secret-key-filename> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment