How to list GnuPG or GPG public keys

When you create or generate a new GPG or GnuPG key pair, it is stored in your key ring. Keys stored within the key ring can be listed using using the command as below in the Linux terminal.

$ gpg --list-public-keys <enter>

/home/user/.gnupg/pubring.gpg
------------------------------
pub 4096R/3949C65A 2014-11-28 [expires: 2015-11-28]
uid John N. Doe <john.doe@emaildomain.com>
sub 4096R/F0F04E4E 2014-11-28 [expires: 2015-11-28]

The key ID is in bold and it is 3949C65A.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s