How to delete key w/ duplicate id?

patrick patrick at fexl.com
Sat Jun 18 01:05:19 CEST 2005


On Fri, 17 Jun 2005 22:17:44 +0000 (UTC), Skip Montanaro wrote
> I recently installed GnuPG on my Mac laptop, not realizing it 
> was apparently installed at some previous time.  After the 
> install I generated a new key but gave the same id as an 
> earlier key.  My keyring now has three keys:
> 
>     % gpg --list-keys
>     /Users/skip/.gnupg/pubring.gpg
>     ------------------------------
>     pub   1024D/D0AA36FE 2001-03-30
>     uid                  Skip Montanaro <skip at pobox.com>
>     sub   1024g/88676B77 2001-03-30
> 
>     pub   1024D/B805F237 2000-04-04
>     uid                  Neil Schemenauer <nas at arctrix.com>
>     uid                  Neil A. Schemenauer <nas at arctrix.com>
>     sub   1536g/90A32543 2000-04-04
> 
>     pub   1024D/A5F59887 2005-06-11
>     uid                  Skip Montanaro <skip at pobox.com>
>     sub   2048g/B2FD262D 2005-06-11
> 
> Note that the first and last keys have the same uid. 
>  Everything I've tried always selects the first item.  How can 
> I select and delete the last item?



I'm pretty sure you'd just use the 32-bit key id as follows:


gpg --delete-key A5F59887



-- Patrick





More information about the Gnupg-users mailing list