Import a public key: gpg --import public.key Import a private key: gpg --allow-secret-key-import --import private.key List the keys in your public key ring: gpg --list-keys List the keys in your secret key ring: gpg --list-secret-keys