Index ¦ Archives ¦ Atom

use mutt with gpg

Using gpg with mutt

# get the mutt configuration
mkdir ~/.mutt

# using debian
cp /usr/share/doc/mutt/examples/gpg.rc ~/.mutt/

# using opensuse
cp /usr/share/dock/packages/mutt/samples ~/.mutt/

# add to mutt config
echo "source ~/.mutt/gpg.rc" >> ~/.muttrc

# generate gpg key
gpg --gen-key

# list keys and get key id
gpg --list-keys

# publish key
gpg --keyserver certserver.pgp.com --send-key <key id>

# set default gpg key
# in ~/.gnupg/gpg.conf
default-key <key id>
# allow automatic key fetching
keyserver-options auto-key-retrieve

# search and import foreign keys
# you can search for names, email addresses or key ids
gpg --search-keys <names>
gpg --recv-keys <names>

# signing a key
gpg --sign-key <name>

Send signed or encrypted mail

  1. hit "m" to compose an email
  2. hit "p" to sign or encrypt
  3. hit "y" to send

© Henryk Iwaniuk. Built using Pelican. Theme by Giulio Fidente on github.