Last active
December 28, 2018 13:44
-
-
Save Fake51/9b423bed2b64d428fec5935083ffb60e to your computer and use it in GitHub Desktop.
GPG gems
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
## use gpg2 instead of gpg | |
alias gpg=gpg2 | |
## import key | |
gpg --import <keyfile> | |
## export public key | |
gpg --export --armor --output <outputfile> <key> | |
## export private key | |
gpg --export-secret-keys --armor --output <outputfile> <key> | |
## encrypt file | |
gpg -e --recipient <pubkey uid> --output <outputfile> <inputfile> | |
## search for a public key | |
gpg [--keyserver <server>] --search-keys <search string> | |
## sign public key with default private key to indicate trust | |
gpg --sign-key <key> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment