how to use gpg with a smartcard, when there is no smartcard

Werner Koch wk at gnupg.org
Fri Nov 9 17:15:33 CET 2007


On Fri,  9 Nov 2007 10:28, sh at sourcecode.de said:

> There must be a possibility to sign something without having a smartcard 
> reader attached, right?

Sure.  You need to tell gpg to use a different key for signing  

  gpg -s -u other-key

will work.  If that other key is a subkey and tehre is also a smartcard
based subkey which is preferred over other-key you need to apped an '!',
e.g.

  gpg -s -u '0x1234567!'

The exclamation mark forces gpg to use exactly that subkey; the default
is to figure out what will be the best subkey (or primary key) to use.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Auschnahme regelt ein Bundeschgesetz.




More information about the Gnupg-users mailing list