unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Daiki Ueno <ueno@unixuser.org>
Cc: Sascha Wilde <wilde@sha-bang.de>,
	emacs-devel@gnu.org, reinersteib+gmane@imap.cc
Subject: Re: pgg-encrypt is a pain in the neck
Date: Tue, 02 Jan 2007 09:28:42 +0900	[thread overview]
Message-ID: <a7f760fd-a89b-4dd9-a2f0-f142f765245f@well-done.deisui.org> (raw)
In-Reply-To: <E1H18w2-0007Px-5V@fencepost.gnu.org> (Richard Stallman's message of "Sun, 31 Dec 2006 17:13:42 -0500")

>>>>> In <E1H18w2-0007Px-5V@fencepost.gnu.org> 
>>>>>	Richard Stallman <rms@gnu.org> 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

  reply	other threads:[~2007-01-02  0:28 UTC|newest]

Thread overview: 122+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-13 18:41 Syncing Gnus and Emacs repositories Reiner Steib
2007-06-13 19:57 ` Stefan Monnier
2007-06-13 21:47   ` Reiner Steib
2007-06-13 22:21     ` Stefan Monnier
2007-06-13 22:41       ` Glenn Morris
2007-06-13 23:22         ` Chong Yidong
2007-06-14  6:31           ` Emacs 23 development policy (was: Syncing Gnus and Emacs repositories) Reiner Steib
2007-06-14  7:25             ` David Reitter
2007-06-14 13:42               ` Adrian Robert
2007-06-14 19:56                 ` Emacs 23 development policy Stefan Monnier
2007-06-14 16:20           ` Syncing Gnus and Emacs repositories Richard Stallman
2007-06-14 16:27             ` Chong Yidong
2007-06-15  0:57               ` Kenichi Handa
2007-06-15  2:03                 ` Miles Bader
2007-06-15  3:14                   ` Kenichi Handa
2007-06-15  2:35                 ` Nick Roberts
2007-06-15 19:22                   ` Richard Stallman
2007-06-15 21:48                     ` Nick Roberts
2007-06-16 18:50                       ` Richard Stallman
2007-06-16 19:23                         ` Chong Yidong
2007-06-16 19:28                           ` David Kastrup
2007-06-17  8:54                             ` Richard Stallman
2007-06-17 19:47                               ` David Kastrup
2007-06-17  8:54                           ` Richard Stallman
2007-06-18  1:36                             ` Kenichi Handa
2007-06-18 21:30                               ` Richard Stallman
2007-06-19  5:01                                 ` Kenichi Handa
2007-06-19  5:31                                   ` Stefan Monnier
2007-06-19 22:26                                   ` Richard Stallman
2007-06-20 13:18                                     ` Kenichi Handa
2007-06-20 17:36                                       ` Richard Stallman
2007-06-15 22:12                     ` David Kastrup
2007-06-16 10:48                       ` Eli Zaretskii
2007-06-16 12:09                         ` David Kastrup
2007-06-16 13:01                           ` Eli Zaretskii
2007-06-16 13:13                             ` David Kastrup
2007-06-16 13:23                               ` Eli Zaretskii
2007-06-16 14:05                                 ` David Kastrup
2007-06-16 16:34                                   ` Eli Zaretskii
2007-06-16 17:38                                     ` David Kastrup
2007-06-16 18:26                                       ` Eli Zaretskii
2007-06-16 13:55                               ` YAMAMOTO Mitsuharu
2007-06-16 14:16                                 ` David Kastrup
2007-06-17 23:07                             ` Kenichi Handa
2007-06-18  3:10                               ` Eli Zaretskii
2007-06-18  5:18                                 ` David Kastrup
2007-06-18  6:01                                   ` Nick Roberts
2007-06-18 19:12                                     ` Eli Zaretskii
2007-06-18 21:12                                       ` Nick Roberts
2007-06-19 22:25                                       ` Richard Stallman
2007-06-18 19:11                                   ` Eli Zaretskii
2007-06-18 21:30                                   ` Richard Stallman
2007-06-18  6:53                                 ` Stephen J. Turnbull
2007-06-18  7:24                                   ` David Kastrup
2007-06-18  8:34                                     ` Stephen J. Turnbull
2007-06-18  8:50                                       ` David Kastrup
2007-06-18 19:23                                   ` Eli Zaretskii
2007-06-19  0:53                                     ` Stephen J. Turnbull
2007-06-19  5:17                                       ` Eli Zaretskii
2007-06-19  5:37                                         ` David Kastrup
2007-06-19  6:09                                           ` Eli Zaretskii
2007-06-19 17:53                                             ` Stephen J. Turnbull
2007-06-19  5:21                                       ` David Kastrup
2007-06-19  2:19                                     ` Kenichi Handa
2007-06-19  5:20                                       ` Eli Zaretskii
2007-06-23  8:13                                   ` Giorgos Keramidas
2007-06-16 18:50                       ` Richard Stallman
2007-06-16 14:22                     ` Proposal for a 22.2/trunk development model (was: Syncing Gnus and Emacs repositories) Dan Nicolaescu
2007-06-16 14:37                       ` Proposal for a 22.2/trunk development model David Kastrup
2007-06-16 16:01                         ` Dan Nicolaescu
2007-06-16 16:41                           ` David Kastrup
2007-06-16 17:05                             ` Dan Nicolaescu
2007-07-01 20:40                       ` Proposal for a 22.2/trunk development model (was: Syncing Gnus and Emacs repositories) Richard Stallman
2007-06-15 19:21               ` Syncing Gnus and Emacs repositories Richard Stallman
2007-06-14 16:48             ` Jay Belanger
2007-06-17 13:47     ` Reiner Steib
2007-07-09  2:22       ` Miles Bader
2007-07-09 17:21         ` Richard Stallman
2007-07-10 10:33           ` Miles Bader
2007-07-10 12:19             ` Daiki Ueno
2007-07-10 15:51               ` Leo
2007-07-10 20:05                 ` Miles Bader
2006-12-16  2:58                   ` [bug] PGG shows ?? when prompt for passphrase Leo
2006-12-17  1:30                     ` Daiki Ueno
2006-12-17  2:18                       ` Leo
2006-12-17  3:28                         ` Daiki Ueno
2006-12-17  4:18                           ` Leo
2006-12-17  4:28                             ` Daiki Ueno
2006-12-17  5:27                               ` Leo
2006-12-18  1:12                               ` Richard Stallman
2006-12-18  1:34                                 ` Daiki Ueno
     [not found]                                   ` <E1GwhJI-0003jz-GI@fencepost.gnu.org>
2006-12-19 23:55                                     ` Daiki Ueno
     [not found]                           ` <E1Gw733-00050z-Ic@fencepost.gnu.org>
     [not found]                             ` <c371ac3b-6629-4e1a-a023-92982698664b@well-done.deisui.org>
     [not found]                               ` <6662a3b9-1148-4aa0-bd2d-29a67be38d76@well-done.deisui.org>
     [not found]                                 ` <E1Gx14z-0000Zc-Lm@fencepost.gnu.org>
     [not found]                                   ` <5a520e06-4ee3-4c4f-9345-d49a666516f9@well-done.deisui.org>
     [not found]                                     ` <E1GyDFo-00006s-IW@fencepost.gnu.org>
     [not found]                                       ` <7f60c21d-2f66-4c4b-9abb-e377ca24a153@well-done.deisui.org>
     [not found]                                         ` <fe674575-f87f-46e4-8287-6481b3fc6f03@well-done.deisui.org>
     [not found]                                           ` <E1Gz20z-0003hC-Nb@fencepost.gnu.org>
     [not found]                                             ` <844cd50a-ec18-4b09-a057-35bdfb5173fd@well-done.deisui.org>
     [not found]                                               ` <E1GzP1P-0006JH-Lb@fencepost.gnu.org>
     [not found]                                                 ` <8ba25607-9381-4a27-ae53-8b0f3ccc3ac1@well-done.deisui.org>
     [not found]                                                   ` <E1Gzg8G-0002bZ-JG@fencepost.gnu.org>
     [not found]                                                     ` <366fa6ab-42a0-4df5-a17f-4ac3d1744d78@well-done.deisui.org>
     [not found]                                                       ` <E1H0Jui-0005YH-HB@fencepost.gnu.org>
     [not found]                                                         ` <ec5e0f1b-45c5-4ed5-ae1c-766fa33e3ee0@well-done.deisui.org>
2006-12-30 18:24                                                           ` pgg-encrypt is a pain in the neck Richard Stallman
2006-12-30 19:41                                                             ` Sascha Wilde
2006-12-31  1:02                                                               ` Daiki Ueno
2006-12-31 12:27                                                                 ` Sascha Wilde
2006-12-31 14:07                                                                   ` Reiner Steib
2006-12-31 14:38                                                                     ` Daiki Ueno
2006-12-31 22:13                                                                     ` Richard Stallman
2006-12-31  1:47                                                               ` Richard Stallman
2006-12-31 12:54                                                                 ` Sascha Wilde
2006-12-31 14:13                                                                   ` Daiki Ueno
2006-12-31 22:13                                                                   ` Richard Stallman
2007-01-02  0:28                                                                     ` Daiki Ueno [this message]
2007-01-02 16:37                                                                       ` Richard Stallman
2007-01-02 19:53                                                                         ` Reiner Steib
2006-12-31 22:13                                                                   ` Richard Stallman
2007-01-02 18:43                                                                     ` Stefan Monnier
2006-12-31  1:46                                                           ` Richard Stallman
     [not found]                                                       ` <E1H0Juj-0005YY-RU@fencepost.gnu.org>
2007-07-10 22:47                                                         ` Syncing Gnus and Emacs repositories Daiki Ueno
2007-07-10 22:54                                                           ` Miles Bader
2007-07-11  0:07                                                             ` Daiki Ueno
2007-07-11 21:03                                                           ` Richard Stallman
2007-07-10 21:29                   ` Stefan Monnier
2007-07-11  2:25                     ` Miles Bader
2007-07-11 21:03                       ` Richard Stallman
2007-07-11  3:05                 ` Richard Stallman
2007-07-11  3:43                   ` Daiki Ueno
2007-07-11  9:38                     ` Sascha Wilde
2007-07-11 10:22                       ` Daiki Ueno
2007-07-11 21:04                     ` Richard Stallman
2007-06-14  8:38 ` Miles Bader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a7f760fd-a89b-4dd9-a2f0-f142f765245f@well-done.deisui.org \
    --to=ueno@unixuser.org \
    --cc=emacs-devel@gnu.org \
    --cc=reinersteib+gmane@imap.cc \
    --cc=wilde@sha-bang.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).