changing the passphrase of the secret key stored in the GnuPG card

Damien Goutte-Gattat dgouttegattat at
Mon Jun 12 13:45:18 CEST 2017

I forgot an important detail:

On 06/12/2017 01:28 PM, Damien Goutte-Gattat wrote:
> First, remove the private key stubs:
>    $ rm ~/.gnupg/private-keys-v1.d/*.key

This command will delete *all* your private keys. You should use it "as 
is" only if *all* your private keys are stored on a smartcard.

If you have other private keys in your keyring that are not stored on a 
smartcard, do *not* delete all files in ~/.gnupg/private-keys-v1.d! 
Instead, get the keygrip of each of your card keys

   $ gpg2 --with-keygrip --list-secret-keys

and delete only the corresponding files under ~/.gnupg/private-keys-v1.d.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20170612/240b8cf6/attachment-0001.sig>

More information about the Gnupg-users mailing list