Running gpg-agent and caching the passphrase

Frank Shute frank at
Sat May 21 08:02:32 UTC 2011

On Sat, May 21, 2011 at 08:34:21AM +0200, Jens Jahnke wrote:
> Hi,
> I'm trying to get gpg-agent running under 8.2 using the same setup I've
> had on my linux box.
> The agent is started via .xinitrc:
> export GPG_TTY=$(tty)
> if [ -z `pgrep gpg-agent` ]; then
>   eval $(gpg-agent --daemon --write-env-file "${HOME}/.gpg-agent-info" \
>   --log-file "${HOME}/.gnupg/gpg-agent.log")
> fi
> The agent is up and running (checked via ps) and the option "use-agent"
> is set in gpg.conf. As pinentry I installed pinentry-gtk2.
> If I try to sign or decrypt something the pinentry window comes up and
> asks for my passphrase. So far so good but I want it to cache my
> passphrase for some time.
> My ~/.gnupg/gpg-agent.conf:
> default-cache-ttl = 3600


default-cache-ttl 3600

(no equals sign)

> But no matter what option I set the passphrase is not cached and there
> is no error message in the logs.
> I don't know if this is the right place to ask but the same setup was
> running on my linux box without problems so I guess this might be bsd
> related.
> Regards,
> Jens
> P.S.: I use ssh-agent also and it works without problems. While using
> gpg-agent with the ssh option ask for the passphrase every time the key
> is used.




 Contact info:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list