Date: Sat, 21 May 2011 09:02:27 +0100 From: Frank Shute <frank@shute.org.uk> To: Jens Jahnke <jan0sch@gmx.net> Cc: freebsd questions <freebsd-questions@freebsd.org> Subject: Re: Running gpg-agent and caching the passphrase Message-ID: <20110521080227.GA5841@orange.esperance-linux.co.uk> In-Reply-To: <20110521083421.334517ab.jan0sch@gmx.net> References: <20110521083421.334517ab.jan0sch@gmx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 21, 2011 at 08:34:21AM +0200, Jens Jahnke wrote: > > Hi, >=20 > 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=3D$(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 >=20 > 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. >=20 > 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 =3D 3600 Try: default-cache-ttl 3600 (no equals sign) >=20 > 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. >=20 > Regards, >=20 > Jens >=20 > 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. >=20 Regards, =20 --=20 Frank Contact info: http://www.shute.org.uk/misc/contact.html --SUOF0GtieIMvvwua Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAk3XcZIACgkQHduKvUAgeK4x/ACdGL3I+ZfLsr8qKXkxXSwptUL4 PX4AoJgr5fGnq7wASOdBgo+fhJUrimd3 =+oD+ -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110521080227.GA5841>