How do you show a list of cached keys in gpg-agent?

Hauke Laging mailinglisten at
Sat Jun 8 17:22:00 CEST 2013

Am Sa 08.06.2013, 10:42:51 schrieb Peter Lebbing:

> # If the option
> # --list is given the keygrip is ignored and information about all
> # available keys are returned.

I am afraid that is not what the OP wants to know. "Cached keys" in the sense 
of "ssh-add -l" are keys whose passphrase is cached. But gpg-agent gives you a 
list of all keys it knows (however). I remember having read that it is 
explicitly impossible to get a list of the keys with cached passphrases from 

I just tried the command (for the first time) and something strange happens. I 
get a list of five entries. Four of which seem to belong to keys on 
smartcards. None contains a fingerprint. Then I opened an encrypted email, was 
asked for a passphrase (which was cached: I could open other encrypted emails 
afterwards) but the output of "KEYINFO --list" didn't change at all! There is 
only one instance of gpg-agent running...

PGP: 7D82 FB9F D25A 2CE4 5241 6C37 BF4B 8EEF 1A57 1DF5 (seit 2012-11-04)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 572 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20130608/24b15054/attachment.sig>

More information about the Gnupg-users mailing list