Date: Sat, 21 May 2011 08:34:21 +0200 From: Jens Jahnke <jan0sch@gmx.net> To: freebsd questions <freebsd-questions@freebsd.org> Subject: Running gpg-agent and caching the passphrase Message-ID: <20110521083421.334517ab.jan0sch@gmx.net>
next in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110521083421.334517ab.jan0sch>