[Techtalk] Re: mutt/pgp: decryption

Katie Bechtold katie at katie-and-rob.org
Tue Mar 25 19:49:12 EST 2003


Here's an update on the current status of the problem:

When Raven sent me an encrypted e-mail, Mutt decrypted it
automatically with no problem.  I also had no problem decrypting an
encrypted message that I sent to myself.

There have been two encrypted messages so far that have given me
problems.  (I'll note here that I'm using Mutt 1.4.1i.)

The first is from Gina, who's using Mutt/1.3.28i.  When Mutt
displays an encrypted message from her, I get the error:
gpg: decryption failed: secret key not available
gpg: packet(5) with unknown version 156

I get the same error when I try to decrypt her message by saving it
to a file and running "gpg --decrypt" on it.  I should note that the
encrypted message from her is PGP/MIME encrypted.

The second message in question is from Mike, who's using Apple Mail
2.551 (with GPGMail 0.5.4 as a PGP agent).  When Mutt displays an
encrypted message from him, I see:

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.2.1 (Darwin)

followed by a bunch of encrypted data, followed by:

-----END PGP MESSAGE-----

I'm guessing that this is a "traditional" (i.e., non-RFC-compliant)
PGP message.  Following that line of thinking, I hit Esc-P (the
check-traditional-pgp function in Mutt) and get this output:

Invoking autoview command: gpg < '/tmp/mutta4W8y2' | metamail
                                                             You
need a passphrase to unlock the secret key for
                               user: "Katie Bechtold
<katie at katie-and-rob.org>"
                                                                               1024-bit
ELG-E key, ID FB87AAEA, created 2001-12-13 (main key ID 275FB5E8)

                                                                         Enter
passphrase: 

(Yes, the formatting there is messed up.)  Then it pretty much locks
up.  I enter my passphrase, but nothing happens, and I end up
hitting Control-C to interrupt GnuPG and return to Mutt.

However, I *can* decrypt Mike's message just fine by saving it to a
file and running "gpg --decrypt" on it.

Now here's my configuration:

gpg (GnuPG) 1.0.6
OpenSSL 0.9.6b
[katie at blue katie]$ grep pgp .mutt/auto_views 
auto_view application/pgp-signature
auto_view application/pgp
[katie at blue katie]$ more .mutt/gpg
set pgp_decode_command="gpg %?p?--passphrase-fd 0? --batch --output
- %f"
set pgp_verify_command="gpg --batch --output - --verify %s %f"
set pgp_verify_sig=yes
set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch
--output - %f
set pgp_sign_command="gpg --no-verbose --batch --output -
--passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --output -
--passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="pgpewrap gpg -v --batch --output -
--encrypt --encrypt-to 275FB5E8 --textmode --armor --always-trust --
-r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 -v
--batch -o - --encrypt --encrypt-to 275FB5E8 --sign %?a?-u %a?
--armor --always-trust -- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import -v %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --no-verbose --batch  --fingerprint
--check-sigs %r"
set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons
--list-keys %r"
set pgp_list_secring_command="gpg --no-verbose --batch --with-colons
--list-secret-keys %r"
set pgp_getkeys_command=""
set pgp_good_sign="^gpg: Good signature from"
set pgp_autosign = yes
set pgp_replyencrypt = yes
set pgp_replysignencrypted = yes
set pgp_timeout=4800

-- 
Katie Bechtold
http://katie-and-rob.org/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://linuxchix.org/pipermail/techtalk/attachments/20030325/d5676370/attachment.pgp


More information about the Techtalk mailing list