Deleting a smart card secret key stub from the secret keyring

Wouter Verhelst w at uter.be
Wed Apr 13 09:57:07 CEST 2016


On Tue, Apr 12, 2016 at 07:08:44PM +0200, Werner Koch wrote:
> On Mon, 11 Apr 2016 14:13, w at uter.be said:
> 
> > How do I tell GnuPG that this secret key is no longer in existence, and
> > that it should remove it from its list of secret keys? I've removed it
> 
>   gpg --with-keygrip -k b36c8212
> 
> Which gives you a /Keygrip/.  For a card based key gpg-agent creates a
> file
> 
>   ~/.gnupg/private-keys-v1.d/KEYGRIP.key
> 
> to store public key parameters and the serial number of the card,. so
> that gpg-agent can ask you to insert the card it wants to use.  Just
> delete that file,

Thanks, that worked.

> howeverit will e re-created whe you insert a card.

Presumably, when I insert the card with the same key?

-- 
< ron> I mean, the main *practical* problem with C++, is there's like a dozen
       people in the world who think they really understand all of its rules,
       and pretty much all of them are just lying to themselves too.
 -- #debian-devel, OFTC, 2016-02-12



More information about the Gnupg-users mailing list