$ gpg –gen-key
$ gpg –export -a “User Name” > public.key
$ gpg –export-secret-key -a “User Name” > private.key
$ gpg –import public.key
$ gpg –allow-secret-key-import –import private.key
$ gpg –delete-key “User Name” OBS.: If there is a private key on your private key ring associated with this public key, you must delete your private key for this key pair from your private key ring first.
$ gpg –delete-secret-key “User Name” This deletes the secret key from your secret key ring.
$ gpg –list-keys
$ gpg –list-secret-keys
$ gpg –fingerprint > fingerprint
$ gpg -r KEY -se /path/to/file/to/encrypt
$ gpg -q –batch –yes –decrypt –passphrase=“MyKeySecurePassword” -o /tmp/config config.gpg