| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
PGP/MIME requires an external OpenPGP implementation, such
as GNU Privacy Guard. Pre-OpenPGP
implementations such as PGP 2.x and PGP 5.x are also supported. One
Emacs interface to the PGP implementations, PGG (see section `PGG' in PGG Manual), is included, but Mailcrypt and Florian Weimer's
gpg.el are also supported. See section 2.7.4 Compatibility with older implementations.
Message internally calls GnuPG (the gpg command) to perform
data encryption, and in certain cases (decrypting or signing for
example), gpg requires user's passphrase. Currently the
recommended way to supply your passphrase to gpg is to use the
gpg-agent program.
To use gpg-agent in Emacs, you need to run the following
command from the shell before starting Emacs.
eval `gpg-agent --daemon` |
This will invoke gpg-agent and set the environment variable
GPG_AGENT_INFO to allow gpg to communicate with it.
It might be good idea to put this command in your `.xsession' or
`.bash_profile'. See section `Invoking GPG-AGENT' in Using the GNU Privacy Guard.
Once your gpg-agent is set up, it will ask you for a
passphrase as needed for gpg. Under the X Window System,
you will see a new passphrase input dialog appear. The dialog is
provided by PIN Entry (the pinentry command), and as of
version 0.7.2, pinentry cannot cooperate with Emacs on a
single tty. So, if you are using a text console, you may need to put
a passphrase into gpg-agent's cache beforehand. The following command
does the trick.
gpg --use-agent --sign < /dev/null > /dev/null |
The Lisp variable pgg-gpg-use-agent controls whether to use
gpg-agent. See also See section `Caching passphrase' in The PGG Manual.