From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47245 Path: main.gmane.org!not-for-mail From: Mark Trettin Newsgroups: gmane.emacs.gnus.general Subject: Re: pgg doesn't mention that the signature is untrusted Date: Thu, 17 Oct 2002 12:57:05 +0200 Organization: Aachen University of Technology (RWTH), Germany Sender: owner-ding@hpc.uh.edu Message-ID: References: <87y995vmeu.fsf@mail.paradoxical.net> <87it09ep8f.fsf@mail.paradoxical.net> Reply-To: Mark Trettin NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1034852454 4511 80.91.224.249 (17 Oct 2002 11:00:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 17 Oct 2002 11:00:54 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1828Oa-0001Ac-00 for ; Thu, 17 Oct 2002 13:00:52 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1828O0-0000Rq-00; Thu, 17 Oct 2002 06:00:16 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 17 Oct 2002 06:00:58 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id GAA07404 for ; Thu, 17 Oct 2002 06:00:41 -0500 (CDT) Original-Received: (qmail 20241 invoked by alias); 17 Oct 2002 10:59:49 -0000 Original-Received: (qmail 20236 invoked from network); 17 Oct 2002 10:59:44 -0000 Original-Received: from r220-1.rz.rwth-aachen.de (134.130.3.31) by gnus.org with SMTP; 17 Oct 2002 10:59:44 -0000 Original-Received: from r220-1.rz.RWTH-Aachen.DE (relay2.RWTH-Aachen.DE [134.130.3.1]) by r220-1.rz.RWTH-Aachen.DE (8.12.1/8.11.3-2) with ESMTP id g9HAxYo6005152 for ; Thu, 17 Oct 2002 12:59:34 +0200 (MEST) Original-Received: from beldin.mt743742.dialup.rwth-aachen.de (dialin-145-254-137-122.arcor-ip.net [145.254.137.122]) by r220-1.rz.RWTH-Aachen.DE (8.12.1/8.11.3/24) with ESMTP id g9HAxLNf005115 for ; Thu, 17 Oct 2002 12:59:33 +0200 (MEST) Original-Received: from beldin.mt743742.dialup.rwth-aachen.de ([127.0.0.1]) by beldin.mt743742.dialup.rwth-aachen.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id g9HAv5e04633 for ; Thu, 17 Oct 2002 12:57:06 +0200 Original-To: Ding X-Face: 2ng|LW~1$MclJ,} (Simon Josefsson's message of "Fri, 11 Oct 2002 06:17:41 +0200") Mail-Copies-To: nobody User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Informed Management, i686-pc-linux) Original-Lines: 86 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47245 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47245 * On: Fri, 11 Oct 2002 06:17:41 +0200 Simon Josefsson writes: [ sorry for the late response ] > Josh Huber writes: >> Simon Josefsson writes: >> >>> Not here, it seems to be a bug; PGG stores the passphrase on the key >>> ID actually used by GnuPG to sign something, but it later looks up >>> the passphrase using the first private key ID from >>> --list-secret-keys. This didn't work for me as I have many secret >>> keys. Hm. Shouldn't be difficult to fix, I think. >> >> Perhaps it works for me because of this configuration? >> >> (setq jmh::primary-key "6B21489A") >> (setq pgg-passphrase-cache-expiry 300) >> (setq pgg-default-user-id jmh::primary-key) > Yes, I leave the `pgg-default-user-id' to its default value "jas", > which matches several keys and PGG picks the first one which turns out > to be a expired key I don't use anymore. PGG should handle this > without additional configuration IMHO. I added it to my TODO list.. I figured out when caching works (for me) and when it doesn't. It works for all mails *I* encrypted to¹ myself and another recipient. But it does not work for mails that were encrypted by others *to* me and themselves. Then PGG always asks me for the passphrase of the sender's key-id. Tested with gpg v1.0.6 and v1.2.0. ,---- | [GNUPG:] ENC_TO 1DED9050DB90BB4A 16 0 | [GNUPG:] USERID_HINT 1DED9050DB90BB4A Mark Trettin | [GNUPG:] NEED_PASSPHRASE 1DED9050DB90BB4A AE51CC4123467AF1 16 0 | [GNUPG:] GOOD_PASSPHRASE | [GNUPG:] ENC_TO 4138A8C151C7A0DB 16 0 | [GNUPG:] NO_SECKEY 4138A8C151C7A0DB | [GNUPG:] BEGIN_DECRYPTION | [GNUPG:] SIG_ID TKhfrEdHg1EpB1U9HyVpUWL/G/0 2002-10-14 1034624614 | [GNUPG:] GOODSIG 9D8F3593032E13AC Yvonne Hoffmüller | [GNUPG:] VALIDSIG D2F106C3873507C8F06446069D8F3593032E13AC 2002-10-14 1034624614 0 | [GNUPG:] TRUST_FULLY | [GNUPG:] DECRYPTION_OKAY | [GNUPG:] GOODMDC | [GNUPG:] END_DECRYPTION `---- Everytime I visit the above mail I need to renter my passphrase. ,---- | [GNUPG:] ENC_TO 4138A8C151C7A0DB 16 0 | [GNUPG:] ENC_TO 1DED9050DB90BB4A 16 0 | [GNUPG:] USERID_HINT 1DED9050DB90BB4A Mark Trettin | [GNUPG:] NEED_PASSPHRASE 1DED9050DB90BB4A AE51CC4123467AF1 16 0 | [GNUPG:] GOOD_PASSPHRASE | [GNUPG:] NO_SECKEY 4138A8C151C7A0DB | [GNUPG:] BEGIN_DECRYPTION | [GNUPG:] SIG_ID g3fcQ49lvXr5KM8ecQ82mt2YyyI 2002-10-14 1034630253 | [GNUPG:] GOODSIG AE51CC4123467AF1 Mark Trettin | [GNUPG:] VALIDSIG EB0DE52C22DB340030AF11D9AE51CC4123467AF1 2002-10-14 1034630253 0 | [GNUPG:] TRUST_ULTIMATE | [GNUPG:] DECRYPTION_OKAY | [GNUPG:] GOODMDC | [GNUPG:] END_DECRYPTION `---- Visiting this mail works with the cached passphrase. Maybe it has something to do with order of this "ENC_TO/USERID_HINT" stuff? Or am I just plainly mistaken and everything works as intendend, thus caching is only supposed to work for mails I encrypted? Bye Mark ______________ ¹ is it "encrypt to" or "encrypt for"? -- Mark Trettin · Aachen · Germany · Where is Aachen? --> N: 50°46' E: 06°05' BOFH excuse #67: descramble code needed from software company