Gentoo Archives: gentoo-user

From: Jacob Todd <jaketodd422@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Mutt + GPG
Date: Thu, 18 Jun 2009 20:41:53
Message-Id: 20090618204111.GA26181@zoidberg.hsd1.mi.comcast.net
1 I'm trying to setup mutt with gpg and I found this nice tutorial
2 (http://codecorcery.net/old/mutt/mutt-gnupg-howto) but I'm having
3 trouble getting mutt to fetch keys and add them to my keyring. Right now
4 my .muttrc looks like this (just the pgp part):
5
6 unset pgp_autoencrypt
7 unset pgp_autosign
8 set crypt_autosign=yes
9 set crypt_replyencrypt=yes
10 set crypt_replysign=yes
11 set crypt_replysignencrypted=yes
12 set crypt_timestamp=yes
13 set crypt_verify_sig=yes
14 set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
15 set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
16 set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f"
17 set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 0x152C688E -- -r %r -- %f"
18 set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0x152C688E -- -r %r -- %f"
19 set pgp_export_command="gpg --no-verbose --export --armor %r"
20 set pgp_getkeys_command="gpg --recv-keys %r"
21 set pgp_import_command="gpg --no-verbose --import -v %f"
22 set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r"
23 set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r"
24 set pgp_sign_as="0x152C688E"
25 set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
26 set pgp_strict_enc
27 set pgp_timeout=300
28 set pgp_replyencrypt
29 set pgp_replysign
30 set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
31 set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r"
32 set pgp_verify_sig=yes
33
34 Right now if I go to the command line and do `gpg --recv-keys keyID`,
35 then start mutt it verifies that the key is valid, but if I don't I just
36 get an error saying in the 'gpg: Can't check signature: No public key'
37 and in the status bar 'PGP signature could NOT be verified.' I haven't
38 sent any mail since the whole thing isn't working right yet, so I can't
39 say anything about that.
40
41 Anyone know what I did wrong?
42
43 --
44 Jake Todd
45 // If it isn't broke, tweak it!

Replies

Subject Author
Re: [gentoo-user] Mutt + GPG Uwe <keksvernichter@××××××××××.com>