[ale] pgp sign and mutt?

Michael H. Warfield mhw at wittsend.com
Thu Sep 13 15:46:49 EDT 2001


On Thu, Sep 13, 2001 at 01:53:26AM -0400, Transam wrote:
> > I'm running a debian sid box and using mutt.  I just installed pgp and 
> > generated my keys. I tried to sign an email but is says it can't find 
> > something.  Doesn't quite say what.

> Use GNU's GPG.  It is MUCH easier to install, configure, and use.
> (I walk one through all the steps of downloading, installing, and doing
> common operations in my book.  It was not on the CD due to export
> restrictions when the CD was created.)

	Ah!  But you STILL have to configure mutt to use it!  Gpg may
or may not be the default in the version of mutt he has installed.  The
.muttrc file needs lines like this in it (this is for 1.3.20):

] # decode application/pgp
] set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch -o - %f"
] 
] # verify a pgp/mime signature
] set pgp_verify_command="gpg --no-verbose --batch -o - --verify %s %f"
] 
] # decrypt a pgp/mime attachment
] set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch -o - %f"
] 
] # create a pgp/mime signed attachment
] set pgp_sign_command="gpg-2comp --no-verbose --batch -o - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
] 
] # create a application/pgp signed (old-style) message
] set pgp_clearsign_command="gpg-2comp --no-verbose --batch -o - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
] 
] # create a pgp/mime encrypted attachment
] set pgp_encrypt_only_command="pgpewrap gpg-2comp -v --batch -o - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
] 
] # create a pgp/mime encrypted and signed attachmenti
] set pgp_encrypt_sign_command="pgpewrap gpg-2comp --passphrase-fd 0 -v --batch -o - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
] 
] # import a key into the public key ring
] set pgp_import_command="gpg --no-verbose --import -v %f"
] 
] # export a key from the public key ring
] set pgp_export_command="gpg --no-verbose --export --armor %r"
] 
] # verify a key
] set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r"
] 
] # read in the public key ring
] set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r"
] 
] # read in the secret key ring
] set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r"
] 

	I believe that those options are very different for mutt 1.2.x,
at least I remember having to do some major rewriting on my muttrc file
to get either pgp or gpg (I've used both with mutt) to work with the
newer versions of mutt.

> > Robert L. Harris                |  Micros~1 :  
> 
> Bob Toxen
> transam at cavu.com                       [Bob's ALE Bulk email]
> bob at cavu.com                           [Please use for email to me]
> http://www.cavu.com
> http://www.realworldlinuxsecurity.com/ [My 5* book:"Real World Linux Security"]
> http://www.cavu.com/sunset.html        [Sunset Computer]
> Fly-By-Day Consulting, Inc.      "Don't go with a fly-by-night outfit!"
> Quality Linux & UNIX security and SysAdmin & software consulting since 1990.
> 
> GPG Public key available at http://www.cavu.com/pubkey.txt (book at cavu.com)
> pub  1024D/E3A1C540 2000-06-21 Bob Toxen <book at cavu.com>
>      Key fingerprint = 30BA AA0A 31DD B68B 47C9  601E 96D3 533D E3A1 C540
> sub  2048g/03FFCCB9 2000-06-21
> --
> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.

	Mike
-- 
 Michael H. Warfield    |  (770) 985-6132   |  mhw at WittsEnd.com
  (The Mad Wizard)      |  (678) 463-0932   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list