From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NkQNN-0005js-Ss for garchives@archives.gentoo.org; Wed, 24 Feb 2010 23:10:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 44C5BE08D9 for ; Wed, 24 Feb 2010 23:10:41 +0000 (UTC) Received: from mail-ew0-f222.google.com (mail-ew0-f222.google.com [209.85.219.222]) by pigeon.gentoo.org (Postfix) with ESMTP id 65088E070C for ; Wed, 24 Feb 2010 22:51:45 +0000 (UTC) Received: by ewy22 with SMTP id 22so1255873ewy.26 for ; Wed, 24 Feb 2010 14:51:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=NZIa08xiUBt/dn0COUUpOfRr87R2ysN9LsP3rWWuEYA=; b=NZEPWYmgTvjIX5R8RK5rlrRaAyj0/8uBUbRs8gUteP3UfX6KmPOAOXvg8GueB5B2R3 5CnTlq2DR1yvW8nEdOiLtNUkmzG5LwBTQKuXBi2V4og3rB46RGt1rS0pog0V2GdMN77D tt1yktq02lh4/RFo0pG5xl24xkhg+tGt9sj9Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=b/goQZ9W1obE20p0v+XjJjghH+XO90kY/Cu9od6GuK9BTFfjDBnZgs6Oujbi2WWLc9 /0DO6CIFXAnjdhzn/o0ChB3Q4H6DZjxLSjGZ1TCIrrhL+AE7N+vYdHgN7htvZGIagMql uFUjeow138ncSKZwns+fbMMH1bSRpr1T8KAsc= Received: by 10.213.80.1 with SMTP id r1mr320760ebk.52.1267051904670; Wed, 24 Feb 2010 14:51:44 -0800 (PST) Received: from lappy.localnet (230.3.169.217.in-addr.arpa [217.169.3.230]) by mx.google.com with ESMTPS id 16sm1170947ewy.3.2010.02.24.14.51.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 24 Feb 2010 14:51:42 -0800 (PST) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] gnupg fails to decrypt on kmail Date: Wed, 24 Feb 2010 22:51:38 +0000 User-Agent: KMail/1.12.4 (Linux/2.6.31-gentoo-r10; KDE/4.3.5; i686; ; ) References: <201002211450.13952.michaelkintzios@gmail.com> <358eca8f1002240331y3c54d445h5ce25783878f7dd1@mail.gmail.com> <20100224150306.GA20385@math.princeton.edu> In-Reply-To: <20100224150306.GA20385@math.princeton.edu> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201002242251.40554.michaelkintzios@gmail.com> X-Archives-Salt: 88ec60a5-40ce-499e-9efb-5d83ea4f1898 X-Archives-Hash: 0e84238616e7c9b09aeb848be0ac2cdf On Wednesday 24 February 2010 15:03:06 Willie Wong wrote: > Hum, also, try getting some debug output from gpg-agent: > > (1) 'killall gpg-agent' (and run ps aux to see if they are really > killed) > (2) Restart gpg-agent via > > eval 'gpg-agent --daemon --no-detach --debug-level guru --log-file > ~/gpg-agent.log' (3) Run gpg. > > Look at the content of ~/gpg-agent.log to see if anything is amiss. Thank you very much for persevering with me! :-) I changed your eval argument a bit and this is what I noticed: eval "$(gpg-agent --daemon --no-detach --debug-level guru --log-file gpg- agent.log)" gpg-agent[7276]: enabled debug flags: command mpi crypto memory cache memstat hashing assuan The log file shows: ================================================ 2010-02-24 20:32:01 gpg-agent[7276] listening on socket `/tmp/gpg- IX4A40/S.gpg-agent' 2010-02-24 20:32:01 gpg-agent[7277] gpg-agent (GnuPG) 2.0.14 started 2010-02-24 20:32:13 gpg-agent[7277] SIGINT received - immediate shutdown 2010-02-24 20:32:13 gpg-agent[7277] gpg-agent (GnuPG) 2.0.14 stopped 2010-02-24 20:32:13 gpg-agent[7277] random usage: poolsize=600 mixed=0 polls=0/0 added=0/0 outmix=0 getlvl1=0/0 getlvl2=0/0 2010-02-24 20:32:13 gpg-agent[7277] secmem usage: 0/32768 bytes in 0 blocks ================================================ However, when I invoke gpg it looks for another socket ... different to the one that the agent is listening on. ================================================ $ gpg -vv DATA/some_data.ods.gpg gpg: using character set `iso-8859-1' gpg: enabled debug flags: memstat :pubkey enc packet: version 3, algo 16, keyid data: [2048 bits] data: [2045 bits] gpg: public key is XXXXXXXX gpg: using subkey XXXXXXXX instead of primary key YYYYYYYY You need a passphrase to unlock the secret key for user: "me " gpg: using subkey XXXXXXXX instead of primary key YYYYYYYY 2048-bit ELG key, ID XXXXXXXX, created 2010-01-25 (main key ID YYYYYYYY) can't connect to `/tmp/gpg-pNLb9Y/S.gpg-agent': No such file or directory gpg: can't connect to the agent - trying fall back can't connect to `/home/michael/.gnupg/S.gpg-agent': No such file or directory gpg: no running gpg-agent - starting one gpg-agent[7265]: enabled debug flags: assuan can't connect to `/home/michael/.gnupg/log-socket': Connection refused gpg: problem with the agent: No pinentry :encrypted data packet: length: 22577 mdc_method: 2 gpg: encrypted with 2048-bit ELG key, ID XXXXXXXX, created 2010-01-25 "me " gpg: public key decryption failed: General error gpg: decryption failed: No secret key ================================================ Why is this? Invoking gpg to decrypt different (encrypted) files always brings up that socket '/tmp/gpg-pNLb9Y/S.gpg-agent'. Shouldn't it be a different socket each time? Another thing that shows something has gone south is that pinentry no longer asks for a passphrase as shown above. Also, when I encrypt a file it still does not ask for my passphrase - it just encrypts the file! -- Regards, Mick