aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDaiki Ueno2016-02-21 18:20:40 +0900
committerDaiki Ueno2016-02-21 18:20:40 +0900
commit27d343070d02210316e69e4f7da1faeea2d87608 (patch)
treef6349103d6e8113dad417a5e7b1218b0a7fe69bb /doc
parent5baa001cecbeb3081fb8a9293d45cfe9f19ef844 (diff)
downloademacs-27d343070d02210316e69e4f7da1faeea2d87608.tar.gz
emacs-27d343070d02210316e69e4f7da1faeea2d87608.zip
Mention pinentry.el in epa manual
* doc/misc/epa.texi (GnuPG version compatibility): New chapter, describing the differences between three GnuPG branches, and how to enable pinentry.el. (Caching Passphrases): Add xref to the compatibility chapter.
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/epa.texi72
1 files changed, 51 insertions, 21 deletions
diff --git a/doc/misc/epa.texi b/doc/misc/epa.texi
index 527b44fb180..4b7b11834b3 100644
--- a/doc/misc/epa.texi
+++ b/doc/misc/epa.texi
@@ -42,7 +42,7 @@ modify this GNU manual.''
42 42
43@contents 43@contents
44 44
45@node Top 45@node Top, Overview, (dir), (dir)
46@top EasyPG Assistant user's manual 46@top EasyPG Assistant user's manual
47 47
48EasyPG Assistant is an Emacs user interface to GNU Privacy Guard 48EasyPG Assistant is an Emacs user interface to GNU Privacy Guard
@@ -61,6 +61,7 @@ called EasyPG Library.
61* Quick start:: 61* Quick start::
62* Commands:: 62* Commands::
63* Caching Passphrases:: 63* Caching Passphrases::
64* GnuPG version compatibility::
64* Bug Reports:: 65* Bug Reports::
65* GNU Free Documentation License:: The license for this documentation. 66* GNU Free Documentation License:: The license for this documentation.
66* Key Index:: 67* Key Index::
@@ -68,7 +69,7 @@ called EasyPG Library.
68* Variable Index:: 69* Variable Index::
69@end menu 70@end menu
70 71
71@node Overview 72@node Overview, Quick start, Top, Top
72@chapter Overview 73@chapter Overview
73 74
74EasyPG Assistant provides the following features. 75EasyPG Assistant provides the following features.
@@ -82,7 +83,7 @@ EasyPG Assistant provides the following features.
82@item Automatic encryption/decryption of *.gpg files. 83@item Automatic encryption/decryption of *.gpg files.
83@end itemize 84@end itemize
84 85
85@node Quick start 86@node Quick start, Commands, Overview, Top
86@chapter Quick start 87@chapter Quick start
87 88
88EasyPG Assistant commands are prefixed by @samp{epa-}. For example, 89EasyPG Assistant commands are prefixed by @samp{epa-}. For example,
@@ -99,7 +100,7 @@ EasyPG Assistant provides several cryptographic features which can be
99integrated into other Emacs functionalities. For example, automatic 100integrated into other Emacs functionalities. For example, automatic
100encryption/decryption of @file{*.gpg} files. 101encryption/decryption of @file{*.gpg} files.
101 102
102@node Commands 103@node Commands, GnuPG version compatibility, Quick start, Top
103@chapter Commands 104@chapter Commands
104 105
105This chapter introduces various commands for typical use cases. 106This chapter introduces various commands for typical use cases.
@@ -113,7 +114,7 @@ This chapter introduces various commands for typical use cases.
113* Encrypting/decrypting gpg files:: 114* Encrypting/decrypting gpg files::
114@end menu 115@end menu
115 116
116@node Key management 117@node Key management, Cryptographic operations on regions, Commands, Commands
117@section Key management 118@section Key management
118Probably the first step of using EasyPG Assistant is to browse your 119Probably the first step of using EasyPG Assistant is to browse your
119keyring. @kbd{M-x epa-list-keys} is corresponding to @samp{gpg 120keyring. @kbd{M-x epa-list-keys} is corresponding to @samp{gpg
@@ -196,7 +197,7 @@ Delete selected keys. If @var{allow-secret} is non-@code{nil}, it
196also delete the secret keys. 197also delete the secret keys.
197@end deffn 198@end deffn
198 199
199@node Cryptographic operations on regions 200@node Cryptographic operations on regions, Cryptographic operations on files, Key management, Commands
200@section Cryptographic operations on regions 201@section Cryptographic operations on regions
201 202
202@deffn Command epa-decrypt-region start end 203@deffn Command epa-decrypt-region start end
@@ -241,7 +242,7 @@ also ask you whether or not to sign the text before encryption and if
241you answered yes, it will let you select the signing keys. 242you answered yes, it will let you select the signing keys.
242@end deffn 243@end deffn
243 244
244@node Cryptographic operations on files 245@node Cryptographic operations on files, Dired integration, Cryptographic operations on regions, Commands
245@section Cryptographic operations on files 246@section Cryptographic operations on files
246 247
247@deffn Command epa-decrypt-file file &optional output 248@deffn Command epa-decrypt-file file &optional output
@@ -262,7 +263,7 @@ select signing keys, and then a signature type.
262Encrypt @var{file}. It will let you select recipients. 263Encrypt @var{file}. It will let you select recipients.
263@end deffn 264@end deffn
264 265
265@node Dired integration 266@node Dired integration, Mail-mode integration, Cryptographic operations on files, Commands
266@section Dired integration 267@section Dired integration
267 268
268EasyPG Assistant extends Dired Mode for GNU Emacs to allow users to 269EasyPG Assistant extends Dired Mode for GNU Emacs to allow users to
@@ -301,7 +302,7 @@ Encrypt marked files.
301 302
302@end table 303@end table
303 304
304@node Mail-mode integration 305@node Mail-mode integration, Encrypting/decrypting gpg files, Dired integration, Commands
305@section Mail-mode integration 306@section Mail-mode integration
306 307
307EasyPG Assistant provides a minor mode @code{epa-mail-mode} to help 308EasyPG Assistant provides a minor mode @code{epa-mail-mode} to help
@@ -353,7 +354,7 @@ use that option to ignore specific recipients for encryption purposes.
353 354
354@end table 355@end table
355 356
356@node Encrypting/decrypting gpg files 357@node Encrypting/decrypting gpg files, , Mail-mode integration, Commands
357@section Encrypting/decrypting gpg files 358@section Encrypting/decrypting gpg files
358By default, every file whose name ends with @file{.gpg} will be 359By default, every file whose name ends with @file{.gpg} will be
359treated as encrypted. That is, when you open such a file, the 360treated as encrypted. That is, when you open such a file, the
@@ -436,18 +437,47 @@ If non-@code{nil}, disable auto-saving when opening an encrypted file.
436The default value is @code{t}. 437The default value is @code{t}.
437@end defvar 438@end defvar
438 439
439@node Caching Passphrases 440@node GnuPG version compatibility, Caching Passphrases, Commands, Top
441@chapter GnuPG version compatibility
442
443As of February 2016, there are three active branches of GnuPG: 2.1,
4442.0, and 1.4. All those branches should work flawlessly with Emacs,
445with basic use-cases. They have, however, some incompatible
446characteristics, which might be visible when used from Emacs.
447
448@itemize
449@item
450The key store format used by 2.1 is incompatible with 1.4. That
451means, a key created with 2.1 might not be visible with 1.4.
452
453@item
4542.1 uses a fixed Unix domain socket for gpg-agent, and ignores the
455@code{GPG_AGENT_INFO} environment variable, used by 2.0 and 1.4.
456
457@item
4582.1 (2.1.5 or later) has a mechanism to direct the Pinentry password
459prompt to the Emacs minibuffer@footnote{To enable this feature, add
460@samp{allow-emacs-pinentry} to @file{~/.gnupg/gpg-agent.conf} and let
461gpg-agent reload the configuration, with: @samp{gpgconf --reload gpg-agent}},
462which would be useful when you use Emacs remotely or from a text-only
463terminal. That feature is not available in other versions, and more
464specifically, with 2.0 (as of 2.0.29), there is no way to avoid the
465graphical prompt.
466@end itemize
467
468@node Caching Passphrases, Bug Reports, GnuPG version compatibility, Top
440@chapter Caching Passphrases 469@chapter Caching Passphrases
441 470
442Typing passphrases is an irritating task if you frequently open and 471Typing passphrases is a troublesome task if you frequently open and
443close the same file. GnuPG and EasyPG Assistant provide mechanisms to 472close the same file. GnuPG and EasyPG Assistant provide mechanisms to
444remember your passphrases. However, the configuration is a bit 473remember your passphrases. However, the configuration is a bit
445confusing since it depends on your GnuPG installation (GnuPG version 1 or 474confusing since it depends on your GnuPG installation@xref{GnuPG
446GnuPG version 2), encryption method (symmetric or public key), and whether or 475version compatibility}, encryption method (symmetric or public key),
447not you want to use gpg-agent. Here are some questions: 476and whether or not you want to use gpg-agent. Here are some
477questions:
448 478
449@enumerate 479@enumerate
450@item Do you use GnuPG version 2 instead of GnuPG version 1? 480@item Do you use GnuPG version 2.1 or 2.0 instead of GnuPG version 1.4?
451@item Do you use symmetric encryption rather than public key encryption? 481@item Do you use symmetric encryption rather than public key encryption?
452@item Do you want to use gpg-agent? 482@item Do you want to use gpg-agent?
453@end enumerate 483@end enumerate
@@ -473,7 +503,7 @@ To set up elisp passphrase cache, set
473@code{epa-file-cache-passphrase-for-symmetric-encryption}. 503@code{epa-file-cache-passphrase-for-symmetric-encryption}.
474@xref{Encrypting/decrypting gpg files}. 504@xref{Encrypting/decrypting gpg files}.
475 505
476@node Bug Reports 506@node Bug Reports, GNU Free Documentation License, Caching Passphrases, Top
477@chapter Bug Reports 507@chapter Bug Reports
478 508
479Bugs and problems with EasyPG Assistant are actively worked on by the 509Bugs and problems with EasyPG Assistant are actively worked on by the
@@ -495,19 +525,19 @@ Before reporting the bug, you should set @code{epg-debug} in the
495of the @file{ *epg-debug*} buffer. Note that the first letter of the 525of the @file{ *epg-debug*} buffer. Note that the first letter of the
496buffer name is a whitespace. 526buffer name is a whitespace.
497 527
498@node GNU Free Documentation License 528@node GNU Free Documentation License, Key Index, Bug Reports, Top
499@appendix GNU Free Documentation License 529@appendix GNU Free Documentation License
500@include doclicense.texi 530@include doclicense.texi
501 531
502@node Key Index 532@node Key Index, Function Index, GNU Free Documentation License, Top
503@unnumbered Key Index 533@unnumbered Key Index
504@printindex ky 534@printindex ky
505 535
506@node Function Index 536@node Function Index, Variable Index, Key Index, Top
507@unnumbered Function Index 537@unnumbered Function Index
508@printindex fn 538@printindex fn
509 539
510@node Variable Index 540@node Variable Index, , Function Index, Top
511@unnumbered Variable Index 541@unnumbered Variable Index
512@printindex vr 542@printindex vr
513 543