[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:58:21 +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:
>> > 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.
>
> As I said in the private mail, this is because the pipe is closed after
> cat exits. Could you try this one and see if gpg waits after "[GNUPG:]
> GET_HIDDEN passphrase.enter"?
>
> $ (cat test.msg; sleep 10) | gpg --no-tty --status-fd 1 --command-fd 0 --yes \
> --output output.txt --decrypt
No, it doesn't -- here is what happens
(thomas agreed with posting this information, so no more '*'s):
(cat test.msg; sleep 10) | gpg --no-tty --status-fd 1 --command-fd 0 --yes \
--output output.txt --decrypt
[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:] BAD_PASSPHRASE 31A16202F8F7E674
gpg: Invalid passphrase; please try again ...
[GNUPG:] USERID_HINT 31A16202F8F7E674 Sascha Wilde <address@hidden>
[GNUPG:] NEED_PASSPHRASE 31A16202F8F7E674 BB2185144BB86568 16 0
[GNUPG:] GET_HIDDEN passphrase.enter
[GNUPG:] GOT_IT
[GNUPG:] BAD_PASSPHRASE 31A16202F8F7E674
gpg: Invalid passphrase; please try again ...
[GNUPG:] USERID_HINT 31A16202F8F7E674 Sascha Wilde <address@hidden>
[GNUPG:] NEED_PASSPHRASE 31A16202F8F7E674 BB2185144BB86568 16 0
[GNUPG:] GET_HIDDEN passphrase.enter
[GNUPG:] GOT_IT
[GNUPG:] BAD_PASSPHRASE 31A16202F8F7E674
[GNUPG:] ENC_TO 8699BF5FC42134DD 16 0
gpg: encrypted with 1024-bit ELG-E key, ID C42134DD, created 2003-06-24
"Thomas Arendsen Hein <address@hidden>"
[GNUPG:] NO_SECKEY 8699BF5FC42134DD
gpg: encrypted with 2048-bit ELG-E key, ID F8F7E674, created 2004-11-15
"Sascha Wilde <address@hidden>"
gpg: public key decryption failed: bad passphrase
[GNUPG:] BEGIN_DECRYPTION
[GNUPG:] DECRYPTION_FAILED
gpg: decryption failed: secret key not available
gpg: CRC error; 474D93 - 15B95A
[GNUPG:] END_DECRYPTION
is seems that gpg detects the end early and uses the rest of the
message as passphrase, which of cause fails...
So either the PGP Message is malformed, or that there is a
bug in gpg.
In either case, I don't understand why
gpg --no-tty --status-fd 1 --command-fd 0 --yes \
--output output.txt --decrypt test.msg
works without any error:
[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 8699BF5FC42134DD 16 0
gpg: encrypted with 1024-bit ELG-E key, ID C42134DD, created 2003-06-24
"Thomas Arendsen Hein <address@hidden>"
[GNUPG:] NO_SECKEY 8699BF5FC42134DD
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 5816791A
[GNUPG:] SIG_ID AfiFfg5+XNFF741BR7ts3MOF6ds 2006-03-24 1143202579
[GNUPG:] GOODSIG 5BB3F5195816791A Thomas Arendsen Hein <address@hidden>
gpg: Good signature from "Thomas Arendsen Hein <address@hidden>"
gpg: aka "Thomas Arendsen Hein (private) <address@hidden>"
gpg: aka "Thomas Arendsen Hein <address@hidden de>"
[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
cheers
--
Sascha Wilde
A conclusion is simply the place where someone got tired of thinking.
- 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, 2006/04/06
- Re: pgg-gpg broken?, Daiki Ueno, 2006/04/06
- Re: pgg-gpg broken?,
Sascha Wilde <=
- 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
- Re: gpg-agent support removed?!, Sascha Wilde, 2006/04/08
- Re: gpg-agent support removed?!, Reiner Steib, 2006/04/07