gpg --import private.key If the key already existed on the second machine, the import will fail saying "Key already known". To force import, you will have to delete both the private and public key first (gpg --delete-keys and gpg --delete-secret-keys)Enigmail / GnuPG v2
How to Export Private / Secret ASC Key to Decrypt GPG Files gpg --export-secret-keys yourKeyName > privateKey.asc 2.Import Secret Key (import your privateKey) gpg --import privateKey.asc 3.Not done yet, you still need to ultimately trust a key. You will need to make sure that you also ultimately trust a key. gpg --edit-key yourKeyName Enter trust, 5, y, and then quit How to Encrypt and Decrypt Files With GPG on Linux Jul 12, 2019
Jul 12, 2019
GnuPG cheatsheet gpg --import key.gpg gpg --import key.asc Only merge updates for keys already in key-ring: gpg --import key.asc --merge-options merge-only Managing your keyring. Generate a new key: gpg --gen-key # or, generate a new key with dialogs for all options gpg --full-gen-key List public keys: gpg -k gpg - … Gpg4win - Secure email and file encryption with GnuPG for
gpg --armor --export EMAIL_ADDRESS > public_key.asc (EMAIL_ADDRESS is the actual email address associated with the key) You'll have a public key file that you can distribute to those that need to
In the previous article, we discussed how to install GPG. After the installation of GPG, the very next step is to generate a private-public key pair. GPG can be used as a command-line tool. Using various command-line options, one can generate a keypair and do encryption, decryption, and signing. Mar 01, 2015 · gpg --export --armor youremail@example.com > mypubkey.asc. Import another person’s public key: When you import a public key, you are placing it into what is commonly referred to as your GPG “keyring.” gpg --import theirpubkey.asc. List the public keys in your keyring: