Yubikey Guide: Difference between revisions
Jump to navigation
Jump to search
Adding what to do when GnuPG thinks you have the wrong physical key inserted. |
No edit summary |
||
| Line 2: | Line 2: | ||
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: | 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: | ||
<syntaxhighlight lang="bash"> | |||
`gpg --list-secret-keys --with-keygrip` | `gpg --list-secret-keys --with-keygrip` | ||
</syntaxhighlight> | |||
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 `~/.gnupg/private-keys-v1.d` and remove the file name that matches. After that restart the GnuPG daemon and any process. | ||
Revision as of 05:23, 16 January 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.