Yubikey Guide: Difference between revisions

From Wizard Rants
Jump to navigation Jump to search
No edit summary
m switched to code block for system directory description
Line 7: Line 7:


within the output will be listed a Key Grip ID for the encryption key (or whatever key is in error from GPG).
within the output will be listed a Key Grip ID for the encryption key (or whatever key is in error from GPG).
Take that ID and go to `~/.gnupg/private-keys-v1.d` and remove the file name that matches. After that restart the GnuPG daemon and any process.
Take that ID and go to <code>~/.gnupg/private-keys-v1.d</code> and remove the file name that matches. After that restart the GnuPG daemon and any process.

Revision as of 09:32, 7 September 2020

GPG Errors

When GnuPG complains the the Yubikey inserted is the incorrect key for the action you're trying to take, but you know that it is the only key with the information on it that is being requested, you need to do the following:

$ gpg --list-secret-keys --with-keygrip

within the output will be listed a Key Grip ID for the encryption key (or whatever key is in error from GPG). Take that ID and go to ~/.gnupg/private-keys-v1.d and remove the file name that matches. After that restart the GnuPG daemon and any process.