public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mick <michaelkintzios@gmail.com>
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	[thread overview]
Message-ID: <201002242251.40554.michaelkintzios@gmail.com> (raw)
In-Reply-To: <20100224150306.GA20385@math.princeton.edu>


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 <ZZZZZZZZZZZ>
        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 <me@gmail.com>"
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 <me@gmail.com>"
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



  reply	other threads:[~2010-02-24 23:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-21 14:50 [gentoo-user] gnupg fails to decrypt on kmail Mick
2010-02-21 15:08 ` Willie Wong
2010-02-21 15:32   ` Mick
2010-02-21 17:01     ` Willie Wong
2010-02-22  6:49       ` Mick
2010-02-24 11:31         ` Mick
2010-02-24 14:48           ` Willie Wong
2010-02-24 15:03           ` Willie Wong
2010-02-24 22:51             ` Mick [this message]
2010-02-25  0:09               ` Willie Wong
2010-02-25  7:01                 ` Mick
2010-02-25 11:18                   ` Willie Wong
2010-02-25 20:45                     ` Mick
2010-02-26  1:08                       ` Willie Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201002242251.40554.michaelkintzios@gmail.com \
    --to=michaelkintzios@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox