How can one tell what kind of a key one has set up?

David Shaw dshaw at
Thu Nov 27 12:29:58 CET 2003

On Thu, Nov 27, 2003 at 09:14:21AM -0800, David Benfell wrote:
> Hello all,
> I set my keys up sufficiently long ago, that I don't remember what
> kind they are, let alone whether or not they are ElGamal.  How can one
> tell?

gpg --list-keys (yourkey)

Here's my key.

pub  4096R/99242560 2002-01-28 David M. Shaw <dshaw at>
sub  2048g/1643B926 2002-01-28 [expires: 2012-01-26]
sub  1024D/49E1CBC9 2002-01-28 [expires: 2012-01-26]

Look here.

If there is a capital "G" after the key size, that's an Elgamal
sign+encrypt key.  Anything else is safe.  It must be a capital "G"; a
lowercase "g" is also safe.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 330 bytes
Desc: not available
Url : /pipermail/attachments/20031127/f344e8ec/attachment.bin

More information about the Gnupg-users mailing list