From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.devel Subject: Re: pgg-encrypt is a pain in the neck Date: Tue, 02 Jan 2007 09:28:42 +0900 Message-ID: References: <6662a3b9-1148-4aa0-bd2d-29a67be38d76@well-done.deisui.org> <5a520e06-4ee3-4c4f-9345-d49a666516f9@well-done.deisui.org> <7f60c21d-2f66-4c4b-9abb-e377ca24a153@well-done.deisui.org> <844cd50a-ec18-4b09-a057-35bdfb5173fd@well-done.deisui.org> <8ba25607-9381-4a27-ae53-8b0f3ccc3ac1@well-done.deisui.org> <366fa6ab-42a0-4df5-a17f-4ac3d1744d78@well-done.deisui.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1167698941 12848 80.91.229.12 (2 Jan 2007 00:49:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Jan 2007 00:49:01 +0000 (UTC) Cc: Sascha Wilde , emacs-devel@gnu.org, reinersteib+gmane@imap.cc Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 02 01:48:56 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H1Xpi-00006R-4s for ged-emacs-devel@m.gmane.org; Tue, 02 Jan 2007 01:48:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1Xph-0001uh-H2 for ged-emacs-devel@m.gmane.org; Mon, 01 Jan 2007 19:48:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H1XpT-0001tO-L0 for emacs-devel@gnu.org; Mon, 01 Jan 2007 19:48:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H1XpQ-0001qm-Q5 for emacs-devel@gnu.org; Mon, 01 Jan 2007 19:48:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H1XpQ-0001qd-Ix for emacs-devel@gnu.org; Mon, 01 Jan 2007 19:48:32 -0500 Original-Received: from [210.231.96.69] (helo=localhost) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H1XpN-0008GP-Rs; Mon, 01 Jan 2007 19:48:30 -0500 Original-Received: from localhost ([127.0.0.1] helo=well-done.deisui.org) by localhost with esmtp (Exim 4.63) (envelope-from ) id 1H1XWF-0001T5-1a; Tue, 02 Jan 2007 09:28:43 +0900 Original-To: rms@gnu.org X-Attribution: DU Mail-Copies-To: poster In-Reply-To: (Richard Stallman's message of "Sun, 31 Dec 2006 17:13:42 -0500") 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) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64617 Archived-At: >>>>> In >>>>> Richard Stallman 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