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

  

  

  

Blue Captcha Image
Refresh

*

May 2019
M T W T F S S
« Feb    
 12345
6789101112
13141516171819
20212223242526
2728293031