[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pgg-encrypt is a pain in the neck
From: |
Daiki Ueno |
Subject: |
Re: pgg-encrypt is a pain in the neck |
Date: |
Tue, 02 Jan 2007 09:28:42 +0900 |
User-agent: |
T-gnus/6.17.2 (based on No Gnus v0.2) EMIKO/1.14.1 (Choanoflagellata) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 EasyPG/0.0.9 MULE XEmacs/21.4 (patch 14) (Reasonable Discussion) (i686-pc-linux) |
>>>>> In <address@hidden>
>>>>> Richard Stallman <address@hidden> wrote:
> 2. Mail encryption with PGG works in message mode, which can be used
> independently from Gnus and has it's own manual, too.
> The message mode manual already refers to the PGG manual, so I don't
> think any addition is needed. But if you think we should urge the
> users more explicit to use gpg-agent, then the message mode manual
> would be the right place, IMHO.
> Ok, point taken. Would someone please install the gpg-agent
> directions there?
Do you mean "the gpg agent directions" is one I wrote? You asked me to
write a documentation of gpg-agent usage for the Emacs Manual, and I
sent the following to you privately.
Some Emacs commands internally call GnuPG (the @command{gpg} command)
to perform data encryption, and in certain cases (decrypting or
signing for example), @command{gpg} requires user's passphrase.
Currently the recommended way to supply your passphrase to
@command{gpg} is to use the @command{gpg-agent} program.
To use @command{gpg-agent} in Emacs, you need to run the following
command from the shell before starting Emacs.
@example
eval `gpg-agent --daemon`
@end example
This will invoke @command{gpg-agent} and set the environment variable
@code{GPG_AGENT_INFO} to allow @command{gpg} to communicate with it.
It might be good idea to put this command in your @file{.xsession} or
@file{.bash_profile}. @xref{Invoking GPG-AGENT, , , gnupg, Using the
GNU Privacy Guard}.
Once your @command{gpg-agent} is set up, it will ask you for a
passphrase as needed for @command{gpg}. Under the X Window System,
you will see a new passphrase input dialog appear. The dialog is
provided by PIN Entry (the @command{pinentry} command), and as of
version 0.7.2, @command{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.
@example
gpg --use-agent --sign < /dev/null > /dev/null
@end example
The Lisp variable @code{pgg-gpg-use-agent} controls whether to use
@command{gpg-agent}. See also @xref{Caching passphrase, , , pgg, The
PGG Manual}.
--
Daiki Ueno
- Re: pgg-encrypt is a pain in the neck,
Daiki Ueno <=