I have multiple Yubikeys carrying the same GPG secret key. I want to switch from one Yubikey to anohter one on my laptop. The two obviously have different serial numbers.
After switching the keys when I try to decrypt something (e.g. with pass
), I get a popup:
Please insert card with serial number XXXXXXXXXX
(This is with GnuPG version 2.2.17.)
How can I get rid of the popup, telling gpg
to ignore whatever the serial number of the smart card is that I used so far, and instead to look for whatever card has the private key that I'm trying to use?