Coding Knowledge Center
GPG
gpg (Create a key) |
gpg --gen-key
Creates key pair.
gpg (Decrypt file) |
gpg -o data.tar -d data.tar.gpg
gpg --output data.tar --decrypt data.tar.gpg
Decrypts a file using the appropriate private key in the users key ring, if it exists. This will create the decrypted file "data.tar" and keep the "data.tar.gpg" file in tact.
gpg (Import private key) |
gpg --allow-secret-key-import --import private.key
Import a private key into your key ring.
gpg (Import public key) |
gpg --import public.key
Import a public key into your key ring.
gpg (List private keys) |
gpg --list-secret-keys
Lists private keys in your key ring.
gpg (List public keys) |
gpg --list-keys
Lists public keys in your key ring.
gpg (Remove private key) |
gpg --delete-secret-key "User Name"
Removes a private key from your key ring.
gpg (Remove public key) |
gpg --delete-key "User Name"
Removes a public key from your key ring.