From owner-freebsd-questions@FreeBSD.ORG Sat May 21 07:02:10 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 B5D34106566B for ; Sat, 21 May 2011 07:02:10 +0000 (UTC) (envelope-from jan0sch@gmx.net) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mx1.freebsd.org (Postfix) with SMTP id 237898FC17 for ; Sat, 21 May 2011 07:02:09 +0000 (UTC) Received: (qmail invoked by alias); 21 May 2011 06:35:29 -0000 Received: from dslb-088-074-060-022.pools.arcor-ip.net (EHLO magni.rostock.home) [88.74.60.22] by mail.gmx.net (mp008) with SMTP; 21 May 2011 08:35:29 +0200 X-Authenticated: #1545395 X-Provags-ID: V01U2FsdGVkX1+mCdl/hAem2Y7krLlFCxjfbgjm7Snjw8Pp/RoeT6 J3hyu/+SmeMqjz Date: Sat, 21 May 2011 08:34:21 +0200 From: Jens Jahnke To: freebsd questions Message-Id: <20110521083421.334517ab.jan0sch@gmx.net> X-Mailer: Sylpheed 3.1.0 (GTK+ 2.22.1; amd64-portbld-freebsd8.2) X-Face: &?!P`87-36gaG)/K:yi&ixw=uy]y'?$vrc Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA512"; boundary="Signature=_Sat__21_May_2011_08_34_21_+0200_kDgx.m8NPzpyKLoV" X-Y-GMX-Trusted: 0 Subject: Running gpg-agent and caching the passphrase X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 May 2011 07:02:10 -0000 --Signature=_Sat__21_May_2011_08_34_21_+0200_kDgx.m8NPzpyKLoV Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=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 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 =3D 3600 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. --=20 21. Wonnemond 2011, 08:24 Homepage : http://www.jan0sch.de A crow perched himself on a telephone wire. He was going to make a long-distance caw. --Signature=_Sat__21_May_2011_08_34_21_+0200_kDgx.m8NPzpyKLoV Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQG8BAEBCgAGBQJN11z/AAoJED2+SXzzbciGo5YM/0B/hLZziEnh0L6c2Xw0HUzf g9/LHG7UwuWiqnuDBYEQdUHeYVR+mqpp2I47GdSjMMm20/d736Umf53PeIa2jFrQ T4bk07V6gJSLm1AubGMZ0TJiVfuLPKsvABLlbeeT+C1TUBebm+eRBmLv0lnGZ2vC kuzfSILcsxyTATgeHiGtLkielQ6l8q07xNL8GK5Yx2fQAktfStCp1RotASIsj25C TMEbo9/HrhQZyBF8TbbCO9ClM28cFvo6o5mKuBLwNSWUumsR+nu5RzTAE0k6bcjY iWFfJ0470iIKHLwyKheMnukQb8xUwZYIlwwTEC/p3OLKBqHQfzgEUl/b5Vd+s/tm 5OU0+ulSowZkrGYzSafFeMAWmRuYh8SwGGvJR9hdkSfTi4NtBGCf/jmjL/s7H0Qc 1/xGLwrV9ZFJvh0O40tB2OIDH7IJk9l/PWW+SdBlfIYuG60DLopZgd+aFPPzAXmt pCthlOtdo2B2ce6nkt/fh50ZpJAh94WmH2ZpsllKp2Hc2IZ2cOOI4Nk49Xnl5vxp 7djoWD719GJEPXmOObZW =yxRs -----END PGP SIGNATURE----- --Signature=_Sat__21_May_2011_08_34_21_+0200_kDgx.m8NPzpyKLoV--