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

David Shaw dshaw at jabberwocky.com
Fri Nov 28 10:58:28 CET 2003


On Thu, Nov 27, 2003 at 08:51:53PM -0800, David Benfell wrote:
> On Thu, 27 Nov 2003 12:29:58 -0500, David Shaw wrote:
> > 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 jabberwocky.com>
> > 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.
> > 
> gpg: NOTE: old default options file `/Users/benfell/.gnupg/options' ignored
> pub  1024D/A1E6FBBB 1999-12-31 David Benfell <dbenfell at linuxcare.com>
> uid                            David Benfell (31 December 1999) <benfell at greybeard95a.com>
> uid                            David Benfell <benfell at parts-unknown.org>
> uid                            David Benfell <benfell at axispt.com>
> sub  2048g/83232DEC 1999-12-31
> sub  1024G/E0B6354E 2001-01-31
> 
> Ouch.  Thanks!

Yep, that's an Elgamal sign+encrypt key.  Still, at least you can just
revoke the subkey.  You don't have to revoke your entire key.

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


More information about the Gnupg-users mailing list