[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pgg-gpg broken?
From: |
Sascha Wilde |
Subject: |
Re: pgg-gpg broken? |
Date: |
Thu, 06 Apr 2006 11:00:25 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Daiki Ueno <address@hidden> wrote:
>>>>>> In <address@hidden>
>>>>>> Sascha Wilde <address@hidden> wrote:
>> Daiki Ueno <address@hidden> wrote:
>
>> >>>>>> In <address@hidden>
>> >>>>>> Sascha Wilde <address@hidden> wrote:
>> >> I just needed to decrypt an old Mail using Gnus/pgg (which i decrypted
>> >> successfully many times before), but it failed.
>> >
>> >> This is the backtrace I get:
>> >
>> >> Debugger entered--Lisp error: (error "Process pgg-gpg not running")
>> >> process-send-string(#<process pgg-gpg> "DerDenkendeWeissEs\n")
>> >> pgg-gpg-status-GET_HIDDEN(#<process pgg-gpg> "GET_HIDDEN
>> >> passphrase.enter")
>> >> BAD_PASSPHRASE 31A16202F8F7E674\ngpg: Invalid passphrase; please try
>> >> again ...\n[GNUPG:] USERID_HINT 31A16202F8F7E674 Sascha Wilde
>> >
>> >> Might this be related to the latest changes by Daiki?
>> >
>> > The problem might be related to the default-enable-multibyte-characters
>> > issue:
>> > http://article.gmane.org/gmane.emacs.gnus.general/62428
>> > if you are using non-ASCII characters in your passphrase.
>
>> No, only plain ASCII.
>
> Two more questions:
>
> 1. The passphrase you entered was correct?
Yes. I tried this _many_ times, and only this mail fails (and only
with your new code).
> 2. How many times were you queried your passphrase?
Once. If the passphrase is already cached (I'm _not_ using the agent
on this system): none. I also encountered the situation of getting
asked over and over again, but I can't reproduce that...
> A straightforward way to investigate this problem is decrypting the mail
> from the command line as pgg-gpg does. Could you try the following?
>
> $ cat input.txt | gpg --no-tty --status-fd 1 --command-fd 0 --yes \
> --output output.txt --decrypt
This doesn't work (it tries to read the passphrase from the pipe, too.
But this works:
gpg --no-tty --status-fd 1 --command-fd 0 --yes \
--output output.txt --decrypt test.msg
Here is the Output:
[GNUPG:] ENC_TO 31A16202F8F7E674 16 0
[GNUPG:] USERID_HINT 31A16202F8F7E674 Sascha Wilde
<address@hidden>
[GNUPG:] NEED_PASSPHRASE 31A16202F8F7E674 BB2185144BB86568 16 0
[GNUPG:] GET_HIDDEN passphrase.enter
***********************
[GNUPG:] GOT_IT
[GNUPG:] GOOD_PASSPHRASE
[GNUPG:] ENC_TO **************** 16 0
gpg: encrypted with 1024-bit ELG-E key, ID C42134DD, created
2003-06-24
"******** **** <address@hidden>"
[GNUPG:] NO_SECKEY ****************
gpg: encrypted with 2048-bit ELG-E key, ID F8F7E674, created
2004-11-15
"Sascha Wilde <address@hidden>"
[GNUPG:] BEGIN_DECRYPTION
[GNUPG:] PLAINTEXT 74 1143202578 mutt-eukrante-10004-12773-1220
gpg: Signature made Fre 24 Mr 2006 13:16:19 CET using DSA key ID
********
[GNUPG:] SIG_ID AfiFfg5+XNFF741BR7ts3MOF6ds 2006-03-24 1143202579
[GNUPG:] GOODSIG **************** ******** ****
<address@hidden>
gpg: Good signature from "******** **** <address@hidden>"
gpg: aka "******** **** ***** <address@hidden>"
[GNUPG:] VALIDSIG 53D27A45B9AD27915EE44EDE5BB3F5195816791A 2006-03-24
1143202579 0 3 0 17 2 01 53D27A45B9AD27915EE44EDE5BB3F5195816791A
[GNUPG:] TRUST_FULLY
[GNUPG:] DECRYPTION_OKAY
[GNUPG:] GOODMDC
[GNUPG:] END_DECRYPTION
As you can see: everything worked well...
BUT, doing more tests, things became more and more strange:
I tried
gpg --no-tty --status-fd 1 --command-fd 0 --yes \
--output output.txt --decrypt
And pasted in the message using copy and paste, then I got this error:
gpg: CRC error; 6E24DE - 15B95A
[GNUPG:] END_DECRYPTION
So I set pgg-gpg-debug to t and found the same error.
Even more strange, when using the gpg-agent
gpg --no-tty --status-fd 1 --command-fd 0 --yes \
--output output.txt --decrypt <test.msg
works fine, while decryption using the agent + pgg-gpg just hangs...
cheers
sascha
--
Sascha Wilde : "Der Nicht-Denkende glaubt, dass niemand denkt,
: der Denkende weiss es!"
: (Gabriel Laub)
- pgg-gpg broken?, Sascha Wilde, 2006/04/05
- Re: pgg-gpg broken?, Daiki Ueno, 2006/04/05
- Re: pgg-gpg broken?, Sascha Wilde, 2006/04/05
- Re: pgg-gpg broken?, Daiki Ueno, 2006/04/05
- Re: pgg-gpg broken?,
Sascha Wilde <=
- Re: pgg-gpg broken?, Daiki Ueno, 2006/04/06
- Re: pgg-gpg broken?, Sascha Wilde, 2006/04/06
- Re: pgg-gpg broken?, Daiki Ueno, 2006/04/06
- gpg-agent support removed?! (was: pgg-gpg broken?), Sascha Wilde, 2006/04/07
- Re: gpg-agent support removed?! (was: pgg-gpg broken?), Simon Josefsson, 2006/04/07
- Re: gpg-agent support removed?!, Romain Francoise, 2006/04/07
- Re: gpg-agent support removed?!, Sascha Wilde, 2006/04/07
- Re: gpg-agent support removed?!, Simon Josefsson, 2006/04/07
- Re: gpg-agent support removed?!, Reiner Steib, 2006/04/07
- Re: gpg-agent support removed?!, Romain Francoise, 2006/04/08