<<< Date Index >>>     <<< Thread Index >>>

Re: GPG Keys and Signing



Quoting Michael Pobega (pobega@xxxxxxxxx):

> I've just recently learned about PGP/GPG keys and encryption, but I
> can't figure out how to get it to work alongside Mutt.

This works for me!

<esc>:r .mutt/crypto
--------------------

# How many seconds will mutt remember the gpg-passphrase. This is a potential
# security risk. since the phrase needs to be stored somewhere -> memory!
set pgp_timeout=0

# Reply with encryption enabled to encrypted mails.
set pgp_replyencrypt

# Reply with signing enabled to signed mails.
set pgp_replysign

# See /usr/share/doc/mutt/manual.txt.gz for explanation of stringexpansion
set pgp_decode_command="/usr/bin/gpg   --status-fd=2 %?p?--passphrase-fd 0? 
--no-verbose --quiet  --batch  --output - %f"
set pgp_verify_command="/usr/bin/gpg   --status-fd=2 --no-verbose --quiet  
--batch  --output - --verify %s %f"
set pgp_decrypt_command="/usr/bin/gpg   --status-fd=2 --passphrase-fd 0 
--no-verbose --quiet  --batch  --output - %f"
set pgp_sign_command="/usr/bin/gpg    --no-verbose --batch --quiet   --output - 
--passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="/usr/bin/gpg   --no-verbose --batch --quiet   
--output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap /usr/bin/gpg    --batch  
--quiet  --no-verbose --output - --encrypt --textmode --armor --always-trust -- 
-r %r -- %f"
set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap /usr/bin/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="/usr/bin/gpg  --no-verbose --import -v %f"
set pgp_export_command="/usr/bin/gpg   --no-verbose --export --armor %r"
set pgp_verify_key_command="/usr/bin/gpg   --verbose --batch  --fingerprint 
--check-sigs %r"
set pgp_list_pubring_command="/usr/bin/gpg   --no-verbose --batch --quiet   
--with-colons --list-keys %r" 
set pgp_list_secring_command="/usr/bin/gpg   --no-verbose --batch --quiet   
--with-colons --list-secret-keys %r" 

# Regular expression that matches when a message was succesfully verified
set pgp_good_sign="^\\[GNUPG:\\] VALIDSIG"

-- 
| What does sour cream need an expiration date for?
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8  9BDB D463 7E41 08CE C94D