comparison doc/misc/auth.texi @ 110933:7c7fd71d22c7

Clarify the doc about caching passphrases. * epa.texi (Caching Passphrases): * auth.texi (GnuPG and EasyPG Assistant Configuration): Clarify some configurations require to set up gpg-agent.
author Daiki Ueno <ueno@unixuser.org>
date Tue, 12 Oct 2010 10:49:05 +0900
parents 7aa4fdb60d57
children 3958dbde1223
comparison
equal deleted inserted replaced
110932:0d72a05fef14 110933:7c7fd71d22c7
265 @end defun 265 @end defun
266 266
267 @node GnuPG and EasyPG Assistant Configuration 267 @node GnuPG and EasyPG Assistant Configuration
268 @appendix GnuPG and EasyPG Assistant Configuration 268 @appendix GnuPG and EasyPG Assistant Configuration
269 269
270 If you don't customize @code{auth-sources}, the auth-source library
271 reads @code{~/.authinfo.gpg}, which is a GnuPG encrypted file.
272
270 In Emacs 23 or later there is an option @code{auto-encryption-mode} to 273 In Emacs 23 or later there is an option @code{auto-encryption-mode} to
271 automatically decrypt @code{*.gpg} files and it is enabled by default 274 automatically decrypt @code{*.gpg} files. It is enabled by default so
272 so there is no setting is needed. If you are using earlier versions 275 there is no setting is needed. If you are using earlier versions of
273 of Emacs for some reason, you will need: 276 Emacs, you will need:
274 277
275 @lisp 278 @lisp
276 (require 'epa-file) 279 (require 'epa-file)
277 (epa-file-enable) 280 (epa-file-enable)
278 @end lisp 281 @end lisp
279 282
280 If you want your GnuPG passwords to be cached, setup @code{gpg-agent} 283 If you want your GnuPG passwords to be cached, set up @code{gpg-agent}
281 or EasyPG Assitant 284 or EasyPG Assitant
282 @pxref{Caching Passphrases, , Caching Passphrases, epa} 285 @pxref{Caching Passphrases, , Caching Passphrases, epa}
283 286
284 For those who are using older vesions of Emacs, here are some portion 287 To quick start, here are some questions:
285 copied from the EasyPG Assitant manual:
286
287 Here are some questions:
288 288
289 @enumerate 289 @enumerate
290 @item Do you use GnuPG version 2 instead of GnuPG version 1? 290 @item Do you use GnuPG version 2 instead of GnuPG version 1?
291 @item Do you use symmetric encryption rather than public key encryption? 291 @item Do you use symmetric encryption rather than public key encryption?
292 @item Do you want to use gpg-agent? 292 @item Do you want to use gpg-agent?
294 294
295 Here are configurations depending on your answers: 295 Here are configurations depending on your answers:
296 296
297 @multitable {111} {222} {333} {configuration configuration configuration} 297 @multitable {111} {222} {333} {configuration configuration configuration}
298 @item @b{1} @tab @b{2} @tab @b{3} @tab Configuration 298 @item @b{1} @tab @b{2} @tab @b{3} @tab Configuration
299 @item Yes @tab Yes @tab Yes @tab Nothing to do. 299 @item Yes @tab Yes @tab Yes @tab Set up gpg-agent.
300 @item Yes @tab Yes @tab No @tab You can't, without gpg-agent. 300 @item Yes @tab Yes @tab No @tab You can't, without gpg-agent.
301 @item Yes @tab No @tab Yes @tab Nothing to do. 301 @item Yes @tab No @tab Yes @tab Set up gpg-agent.
302 @item Yes @tab No @tab No @tab You can't, without gpg-agent. 302 @item Yes @tab No @tab No @tab You can't, without gpg-agent.
303 @item No @tab Yes @tab Yes @tab Set up elisp passphrase cache. 303 @item No @tab Yes @tab Yes @tab Set up elisp passphrase cache.
304 @item No @tab Yes @tab No @tab Set up elisp passphrase cache. 304 @item No @tab Yes @tab No @tab Set up elisp passphrase cache.
305 @item No @tab No @tab Yes @tab Nothing to do. 305 @item No @tab No @tab Yes @tab Set up gpg-agent.
306 @item No @tab No @tab No @tab You can't, without gpg-agent. 306 @item No @tab No @tab No @tab You can't, without gpg-agent.
307 @end multitable 307 @end multitable
308 308
309 To setup gpg-agent, follow the instruction in GnuPG manual. 309 To set up gpg-agent, follow the instruction in GnuPG manual.
310 @pxref{Invoking GPG-AGENT, , Invoking GPG-AGENT, gnupg}. 310 @pxref{Invoking GPG-AGENT, , Invoking GPG-AGENT, gnupg}.
311 311
312 To set up elisp passphrase cache, set 312 To set up elisp passphrase cache, set
313 @code{epa-file-cache-passphrase-for-symmetric-encryption}. 313 @code{epa-file-cache-passphrase-for-symmetric-encryption}.
314 314