Generating smart-card stubs on a clean computer?

David Shaw dshaw at
Wed Sep 1 06:39:09 CEST 2010

On Aug 31, 2010, at 9:34 PM, Grant Olson wrote:

> I can find docs on generating a key on a smart card, and migrating an
> existing key to the smart card.  But I can't figure out how to configure
> the smart card on a clean machine that never had my secret keys.
> The card has both signing and encryption keys on it.  The drivers are
> installed.  I'm running gpg2 (via gpg4win) on a Windows XP box.
> --card-status and --card-edit work.  But if I try to sign something, I'm
> told I don't have any secret keys.  How do I get stubs to show up in the
> local gpg configuration?
> Does anyone know how I can do this?

Do you have the public key corresponding to the card key on that box?  You need the public key plus a run of --card-status to generate the stubs.


More information about the Gnupg-users mailing list