Using a different OpenPGP card/subkeys with same master key

Marco Steinacher marco+gnupg at
Tue Aug 14 09:03:53 CEST 2012

Am 14.08.2012 03:11, schrieb Olivier Mehani:
> I am using two OpenPGP cards from Kernel Concepts. Each contains
> different subkeys created from the same master key. I tend to use one at
> work, and the other at home.
> Now, the work one is currently not available (lost it somewhere), so I'm
> using the home one at work. I reconfigured poldi which seems to be happy
> to authenticate me with that card, but GnuPG doesn't feel the same.
> The card is properly detected, and the signature key (for this example)
> that I usually use at home is properly listed, but whenever I try to
> sign something, GPG asks for the other card.

I frequently use different cards with the same subkeys. To work around
the problem I run the attached simple script whenever cards are
switched. Maybe that works for you too.

-------------- next part --------------
A non-text attachment was scrubbed...
Type: application/x-sh
Size: 260 bytes
Desc: not available
URL: </pipermail/attachments/20120814/0692ada6/>

More information about the Gnupg-users mailing list