You are not logged in.

#1 2012-01-14 18:51:04

gauthma
Member
Registered: 2010-02-16
Posts: 222
Website

[Solved] mutt and gpg-agent

I have setup mutt to work with GPG, and I've tested and it seems to work fine. I also have gpg-agent setup, and it seems to be working fine as well. But, when I set

set pgp_use_gpg_agent = yes

in mutt's config, then I am no longer to encrypt, decrypt or sign any email in mutt. I always get:

gpg: skipped "0x92146582": bad passphrase
gpg: signing failed: bad passphrase

I'll probably post this in a mutt mailing list, but I though to ask here first. If there's some specifics about my GPG setup, or mutt setup, feel free to ask. I don't post all of it because it's a sizeable amount of information, that would clutter the post.

EDIT: this happens whenever mutt is setup to use gpg-agent, whether there is any pass-phrase cached or not.

Last edited by gauthma (2012-01-16 01:40:58)

Offline

#2 2012-01-15 00:25:59

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 835
Website

Re: [Solved] mutt and gpg-agent

You need to paste the remainder of your pgp_* settings. For one you can't use this in commands --passphrase-fd 0


You need to install an RTFM interface.

Offline

#3 2012-01-15 00:46:43

gauthma
Member
Registered: 2010-02-16
Posts: 222
Website

Re: [Solved] mutt and gpg-agent

Here you go:

set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
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 --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --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"

About the --passphrase, are you saying I have to remove it? (I can't test that suggestion right now; I'll do it tomorrow, though)

Offline

#4 2012-01-15 15:29:55

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 835
Website

Re: [Solved] mutt and gpg-agent

Yes remove it.


You need to install an RTFM interface.

Offline

#5 2012-01-16 01:40:35

gauthma
Member
Registered: 2010-02-16
Posts: 222
Website

Re: [Solved] mutt and gpg-agent

anrxc wrote:

Yes remove it.

Dude awesome, worked like a charm! big_smile Thank you very much!

Offline

#6 2014-05-11 19:04:42

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: [Solved] mutt and gpg-agent

I note a follow on thread to this one was started so they would not bump this old thread.   Thank you for that smile
Closing this one.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB