From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72696 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.gnus.general Subject: Re: "epa (Caching Passphrases)" Date: Wed, 06 Oct 2010 22:25:48 +0900 Message-ID: <8739sjmp0j.fsf@broken.deisui.org> References: <87ocbkujwr.fsf@thinkpad.tsdh.de> <201009272250.59586.tassilo@member.fsf.org> <201009300830.41101.tassilo@member.fsf.org> <877hi38cdi.fsf@lifelogs.com> <87sk0lyurh.fsf@thinkpad.tsdh.de> <87y6abh5ob.fsf@lifelogs.com> <87d3rnmr6r.fsf@broken.deisui.org> <87mxqrh4ah.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1286371586 23840 80.91.229.12 (6 Oct 2010 13:26:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Oct 2010 13:26:26 +0000 (UTC) Cc: ding@gnus.org To: Ted Zlatanov Original-X-From: ding-owner+M21067@lists.math.uh.edu Wed Oct 06 15:26:25 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P3U0k-0002jT-Et for ding-account@gmane.org; Wed, 06 Oct 2010 15:26:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1P3U0L-00014i-Ps; Wed, 06 Oct 2010 08:25:57 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P3U0J-00014R-LE for ding@lists.math.uh.edu; Wed, 06 Oct 2010 08:25:55 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P3U0I-0006Jz-02 for ding@lists.math.uh.edu; Wed, 06 Oct 2010 08:25:55 -0500 Original-Received: from ivory4.scn-net.ne.jp ([219.117.176.192]) by quimby.gnus.org with smtp (Exim 3.36 #1 (Debian)) id 1P3U0G-00018j-00 for ; Wed, 06 Oct 2010 15:25:52 +0200 Original-Received: from ([192.168.0.187]) (envelope sender: ) by ivory4.scn-net.ne.jp with Active!Hunter esmtp server; Wed, 6 Oct 2010 22:25:49 +0900 Original-Received: Received: from well-done.deisui.org (g187018.scn-net.ne.jp [202.83.187.18]) (authenticated) by blue17.scn-net.ne.jp (unknown) with ESMTP id o96DPnnt024205; Wed, 6 Oct 2010 22:25:49 +0900 In-Reply-To: <87mxqrh4ah.fsf@lifelogs.com> (Ted Zlatanov's message of "Wed, 06 Oct 2010 07:52:22 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Spam-Score: -0.9 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72696 Archived-At: --=-=-= Ted Zlatanov writes: >>> Unfortunately Gnus is distributed alone as well, so a info link would >>> not work everywhere. Can you suggest a rewrite of that section in >>> addition to the link to help people in that situation? > > DU> GnuPG is also distributed alone but we refer to its info node with: > DU> @pxref{Top, , Top, gnupg, Using the GNU Privacy Guard} > DU> from the Emacs manual, etc. > > DU> What's the problem? > > I explained the problem and said I'll put the link in. What I requested > was a suggestion on rewording that section for those who don't have the > EPA manual available. Then how about this: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=auth-epa.diff === modified file 'doc/misc/auth.texi' --- doc/misc/auth.texi 2010-09-02 00:55:51 +0000 +++ doc/misc/auth.texi 2010-10-06 13:17:50 +0000 @@ -59,6 +59,7 @@ * Help for users:: * Secret Service API:: * Help for developers:: +* GnuPG and EasyPG Assistant Configuration:: * Index:: * Function Index:: * Variable Index:: @@ -176,16 +177,8 @@ If you don't customize @code{auth-sources}, you'll have to live with the defaults: any host and any port are looked up in the netrc -file @code{~/.authinfo.gpg}. This is an encrypted file if and only if -you set up EPA, which is strongly recommended. - -@lisp -(require 'epa-file) -(epa-file-enable) -;;; VERY important if you want symmetric encryption -;;; irrelevant if you don't -(setq epa-file-cache-passphrase-for-symmetric-encryption t) -@end lisp +file @code{~/.authinfo.gpg}, which is a GnuPG encrypted file. +@xref{GnuPG and EasyPG Assistant Configuration}. The simplest working netrc line example is one without a port. @@ -271,6 +264,54 @@ @end defun +@node GnuPG and EasyPG Assistant Configuration +@appendix GnuPG and EasyPG Assistant Configuration + +In Emacs 23 or later there is an option @code{auto-encryption-mode} to +automatically decrypt @code{*.gpg} files and it is enabled by default +so there is no setting is needed. If you are using earlier versions +of Emacs for some reason, you will need: + +@lisp +(require 'epa-file) +(epa-file-enable) +@end lisp + +If you want your GnuPG passwords to be cached, setup @code{gpg-agent} +or EasyPG Assitant +@pxref{Caching Passphrases, , Caching Passphrases, epa} + +For those who are using older vesions of Emacs, here are some portion +copied from the EasyPG Assitant manual: + +Here are some questions: + +@enumerate +@item Do you use GnuPG version 2 instead of GnuPG version 1? +@item Do you use symmetric encryption rather than public key encryption? +@item Do you want to use gpg-agent? +@end enumerate + +Here are configurations depending on your answers: + +@multitable {111} {222} {333} {configuration configuration configuration} +@item @b{1} @tab @b{2} @tab @b{3} @tab Configuration +@item Yes @tab Yes @tab Yes @tab Nothing to do. +@item Yes @tab Yes @tab No @tab You can't, without gpg-agent. +@item Yes @tab No @tab Yes @tab Nothing to do. +@item Yes @tab No @tab No @tab You can't, without gpg-agent. +@item No @tab Yes @tab Yes @tab Set up elisp passphrase cache. +@item No @tab Yes @tab No @tab Set up elisp passphrase cache. +@item No @tab No @tab Yes @tab Nothing to do. +@item No @tab No @tab No @tab You can't, without gpg-agent. +@end multitable + +To setup gpg-agent, follow the instruction in GnuPG manual. +@pxref{Invoking GPG-AGENT, , Invoking GPG-AGENT, gnupg}. + +To set up elisp passphrase cache, set +@code{epa-file-cache-passphrase-for-symmetric-encryption}. + @node Index @chapter Index @printindex cp --=-=-= -- Daiki Ueno --=-=-=--