XIV. Configuring Mutt For Use With GnuPG https://codesorcery.net/old/mutt/mutt-gnupg-howto
Because I'm working in only text environment and I had a problem with
it, I modified the config file by removing "--batch" and
"--passphrase-fd 0" so mutt is asking for passphrase every time I need
it.
But mutt and neomutt are showing a strange request for passphrase. And
what is more the "focus" isn't in that line, so I can't put there any
text. After I'm pressing ctrl+c application is showing expected message
"[-- Error: decryption failed --]".
On Tue, 23 Aug 2022 19:27:45 -0000 (UTC), Szczezuja.space wrote:
I've used the Debian example gpg.rc (installed by default in Debian distributions in /usr/share/doc/mutt/examples/gpg.rc) for over a decade
and it has always worked for me (I run mutt in either GNU screen or tmux exclusively, so also a text-only environment).
But going back to my question, could you describe the proper behaviour
of the mutt application in such situation - decrypting a message where a default public key isn't fit (as I've written, when I sent encrypted
mail to someone else).
On Sun, 28 Aug 2022 18:52:53 -0000 (UTC), Szczezuja.space wrote:
But going back to my question, could you describe the proper behaviour
of the mutt application in such situation - decrypting a message where a
default public key isn't fit (as I've written, when I sent encrypted
mail to someone else).
If I am understanding your configuration as you described in
<slrntgaahh.1d8dh.szczezuja@vps648005.ovh.net> the resultant behavior
appears correct to me.
You have signed a message with your private key so naturally you can verify it with your public key; however, as you have encrypted that message with only your recipient's public key you will be unable to decrypt it.
You may want to brush up on how private key cryptography works and which operations use which key in the pair to better understand what is happening here.
[...]
[2022-09-20 18:38:11]<1> pgp_decrypt_part() created temp file '/tmp/neomutt-f4vBDi'
[...]
[2022-09-20 18:38:11]<2> mutt_pgp_command() gpg --status-fd=2 --passphrase-fd 0
--no-verbose --quiet --batch /tmp/neomutt-sdf-60633-14988-5733883537168725555 [...]
[2022-09-20 18:38:11]<2> pgp_check_decryption_okay() DECRYPTION_OKAY encountered
[...]
[2022-09-20 18:38:11]<2> pgp_copy_checksig() "[GNUPG:] GOODSIG FC8D23AA13E5C43F
Szczezuja <szczezuja@sdf.org>" matches regex
[...]
[2022-09-20 18:38:11]<E> pgp_decrypt_part() Decryption failed
[...]
"Unless you're a crypto wizard, we recommend a single setting instead: set crypt_use_gpgme = yes"
On 2022-08-29, Matthew Ernisse <matt@going-flying.com> wrote:[...]
On Sun, 28 Aug 2022 18:52:53 -0000 (UTC), Szczezuja.space wrote:
Unfortunately I'm still facing the problem with decryption.
There aren't good words about it: https://github.com/neomutt/neomutt/issues/1866
"Unless you're a crypto wizard, we recommend a single setting instead: set crypt_use_gpgme = yes"So I'm a crypto wizard. :-)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 53:20:13 |
Calls: | 10,397 |
Calls today: | 5 |
Files: | 14,067 |
Messages: | 6,417,394 |
Posted today: | 1 |