List Keys gpg --list-keys Import Key gpg --import private.key Config file # ~/.gnupg/gpg.conf: default-key {KEY-ID} default-recipient-self Encrypt/Decrypt File This encrypts the file using default key (default recipient): gpg -e filename This decrypts it back: gpg -d filename.gpg > filename