ssh-add -l like command in gpg

Werner Koch wk at gnupg.org
Wed Sep 10 11:25:41 CEST 2014


On Wed, 10 Sep 2014 09:50, sudhir at sudhirkhanger.com said:

> Is there a way to tell if a GPG key's passphrase is cached or not? Just like 

This can't work because it creates a race condition.  It is well
possible that key's passphrase expires from the cache after an info
function told you that the passphrase for the key is currently cached.

"ssh-add -l" is different in that it only tells you which keys are
availabale but not which have a cached passphrase.  This is the same as
running "gpg -K".


Shalom-Salam,

   Werner


-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-users mailing list