Enabling smart card PIN cache ?

Werner Koch wk at gnupg.org
Fri Sep 8 14:35:44 CEST 2006


On Fri,  8 Sep 2006 12:04, Bob Dunlop said:

> echo "PRESET_PASSPHRASE <keygrip> -1 <pin>" | gpg-connect-agent
>
> in a startup script and see no error.  Yet each and every call to
> ssh or scp prompts me for a PIN :(

Actually there is no caching at all for smartcards.  Smartcards
usually don'tneed it because they "cache" the PIN's internally
(actually you use the PIN to get the card into another state and the
card's application mat or may not change that state.  The OpenPGP card
for example always changes it back to pin-required for the fist key,
unless you have changed that using the --card-edit:forcesig command.

However, I can see your problem.  As a solution I can only imagine to
add a special feature to allow for PIN caching. I'll think about this,
please give me til Monday and best watch the commit list.


Salam-Shalom,

   Werner





More information about the Gnupg-users mailing list