all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joakim Jalap <joakim.jalap@fastmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Password prompt inside Emacs with epg-gpg-program -> "gpg2"?
Date: Mon, 08 Feb 2016 18:00:54 +0100	[thread overview]
Message-ID: <874mdj2l2x.fsf@joakim-desk.jockej.lan> (raw)
In-Reply-To: 874mdjxlcx.fsf@web.de

Michael Heerdegen <michael_heerdegen@web.de> writes:

> Teemu Likonen <tlikonen@iki.fi> writes:
>
>> The present and the future of GPG (version 2.x and above) is to use
>> gpg-agent and pinentry. I think there's no way to escape that. And it's
>> better. But it seems that there are pinentry implementation(s) for
>> Emacs. There is one in GNU Elpa [...]
>
> Ok, thanks.  (BTW, part of the problem is that when I get the X popup,
> Emacs is in an unresponsive state.  And I need Emacs to get the
> password.  So I need to run a second Emacs instance, or get the password
> before calling Gnus.)
>
> I tried pinentry.el from Gnu Elpa.  What do I need to add exactly to
> "~/.gnupg/gpg-agent.conf"?  Just "allow-emacs-pinentry" as the package's
> doc tells doesn't work.
>
> I could figure it out myself I guess, but I decided to CC the author and
> hope we can improve the package's doc instead.

FWIW, this is what I have in my config regarding Gnupg:

**** GPG

     So, this was a bit of a pain to get working, but now it works. For some
     inexplicable reason, pinentry-emacs isn't built by default on
     either FreeBSD or Arch, so one has to build it from source, and add
     =--enable-pinentry-emacs=. Then add "allow-pinentry-emacs" to
     =~/.gnupg/gpg-agent.conf=.
     Then one simply does:
     #+BEGIN_SRC emacs-lisp
       (require 'pinentry)
       (pinentry-start)
       (setenv "INSIDE_EMACS" "YES")
     #+END_SRC

I also have the cache time set to some ridiculously high value so I
don't have to enter my password all the time, but I guess that's another story.

>
> Thanks,
>
> Michael.

Hope it helps :)

Joakim




  reply	other threads:[~2016-02-08 17:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-08 14:44 Password prompt inside Emacs with epg-gpg-program -> "gpg2"? Michael Heerdegen
2016-02-08 15:10 ` Teemu Likonen
2016-02-08 15:39   ` Michael Heerdegen
2016-02-08 17:00     ` Joakim Jalap [this message]
2016-02-08 17:54       ` Michael Heerdegen
2016-02-08 18:38         ` Joakim Jalap
2016-02-08 18:56           ` Michael Heerdegen
2016-02-08 19:07             ` Joakim Jalap
2016-02-08 20:26               ` Michael Heerdegen
2016-02-09  9:11                 ` Joakim Jalap
2016-02-09  8:58                   ` tomas
2016-02-09  1:01     ` Lars Ingebrigtsen
2016-02-09  3:23     ` Daiki Ueno
2016-02-09  3:49       ` Lars Ingebrigtsen
2016-02-09  7:02         ` Daiki Ueno
2016-02-09 22:50           ` Lars Ingebrigtsen
2016-02-09  9:54         ` Joakim Jalap
     [not found]         ` <mailman.4186.1455011693.843.help-gnu-emacs@gnu.org>
2016-02-10 13:47           ` Barry Fishman
2016-02-10 15:16             ` Joakim Jalap
2016-02-15 11:15 ` Lele Gaifax

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

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

  git send-email \
    --in-reply-to=874mdj2l2x.fsf@joakim-desk.jockej.lan \
    --to=joakim.jalap@fastmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.