How to use a GnuPG card on multiple computers?

Werner Koch wk at
Tue Oct 11 11:03:15 CEST 2011

On Tue, 11 Oct 2011 09:37, urs.hunkeler at said:

> gpg to use the card to encrypt my messages. How can I add such stubs
> to my keyring on a different computer to point to existing keys on my
> card without having to regenerate the keys (which would render the

You insert the card on that other box and enter

   $ gpg2 --card-edit

this creates the stub.  To retrieve the public key you may now enter:

   gpg/card> fetch

this uses the URL field of the card to retrieve the key.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-users mailing list