From owner-freebsd-questions@FreeBSD.ORG Sat May 21 08:02:32 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46C05106566C for ; Sat, 21 May 2011 08:02:32 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from asmtp1.iomartmail.com (asmtp1.iomartmail.com [62.128.201.248]) by mx1.freebsd.org (Postfix) with ESMTP id CCF218FC0A for ; Sat, 21 May 2011 08:02:31 +0000 (UTC) Received: from asmtp1.iomartmail.com (localhost.localdomain [127.0.0.1]) by asmtp1.iomartmail.com (8.13.8/8.13.8) with ESMTP id p4L82SkC007868; Sat, 21 May 2011 09:02:28 +0100 Received: from orange.esperance-linux.co.uk (80-45-152-196.static.dsl.as9105.com [80.45.152.196]) (authenticated bits=0) by asmtp1.iomartmail.com (8.13.8/8.13.8) with ESMTP id p4L82SBU007859; Sat, 21 May 2011 09:02:28 +0100 Received: by orange.esperance-linux.co.uk (Postfix, from userid 1001) id 0153D33C52; Sat, 21 May 2011 09:02:28 +0100 (BST) Date: Sat, 21 May 2011 09:02:27 +0100 From: Frank Shute To: Jens Jahnke Message-ID: <20110521080227.GA5841@orange.esperance-linux.co.uk> References: <20110521083421.334517ab.jan0sch@gmx.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: <20110521083421.334517ab.jan0sch@gmx.net> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 8.2-STABLE amd64 X-Organisation: 'shute.org.uk' Cc: freebsd questions Subject: Re: Running gpg-agent and caching the passphrase X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 May 2011 08:02:32 -0000 --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--