gpg-connect-agent querying max-cache-ttl

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Jan 21 04:31:34 CET 2015


On Fri 2015-01-09 15:24:39 -0500, Rob Fries wrote:

> Basically, I have stand alone system where files are automatically
> encrypted and decrypted for processing. This is currently setup using
> quintuple-agent, but we want to use something which is maintained.  I
> am looking to use gpg-agent to store the passphrase, which is entered
> using gpg-preset-passphrase. This all works perfectly other than
> max-cache-ttl removing the passphrase.
>
> I am looking for a way to query the max-cache-ttl time for gpg-agent
> so I can have an alert as this time approaches.  This will give me a
> heads up before I need to enter a passphrase with
> gpg-preset-passphrase so it can be planned for an optimal time.
>
> I know there are ways to query some information from gpg-agent with
> gpg-connect-agent, but I have not found any central documentation on
> how to query this.

You might be interested the command-line tool gpgconf.

For example:

   gpgconf --list-options gpg-agent | grep '^max-cache-ttl:'


the gpgconf(1) manual page has more details.

hth,

        --dkg



More information about the Gnupg-users mailing list