How to setup OpenGPG 🢃1

This is the steps I follow to setup my gpg keys in {{Linux}}. I use Keybase🡭 to manage my e2e encryption and file sharing. This steps will use keybase cli to export my opengpg keys and gpg to import in my Linux environment keyring.

Export OpenGPG and import

keybase pgp export | gpg --import -
keybase pgp export -s | gpg --allow-secret-key-import --import -

Configure git

After importing the key to our local keyring, we can configure git to sign the commits and use our gpg key.

gpg --list-secret-keys --keyid-format=long # to list our keys
git config --global user.signingkey 0000000000000 # replace with your key
git config --global commit.gpgsign true