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: Tue, 09 Feb 2016 10:54:30 +0100	[thread overview]
Message-ID: <87y4aujjjd.fsf@joakim-desk.jockej.lan> (raw)
In-Reply-To: 87twlifsr0.fsf@gnus.org

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Daiki Ueno <ueno@gnu.org> writes:
>
>> pinentry.el is actually in lisp/net/ already.  For the pinentry program,
>> I don't think it is feasible, since there isn't (and won't be) a way to
>> use a custom pinentry program from the gpg command line:
>> https://lists.gnupg.org/pipermail/gnupg-devel/2015-May/029862.html

Interesting to see that discussion :) I was looking at this months ago
when I tried to get it working in Emacs, but I never really found that thread.

> Hm...  I don't know much about this stuff, but I'm not sure I
> understand.  :-)  There exists a program already called pinentry-emacs,
> somebody said?  That allows us to enter passwords from Emacs, sort of?

pinentry-emacs can be built from the pintry repo at
git.gnupg.org/pintry.git.

Together with the correct envvars set, this allows us to input passwords
from Emacs, yes :)

However this seems to be seen as a sort of hack, and it's disabled by
default on Arch Linux, FreeBSD and Debian as it seems, so I have had to
build it from source. I guess that alienates a lot of users though :/

I agree it would be nice to have this working out of the box. Figuring
out all the steps took me quite a lot of time and effort actually (I
discovered pinentry-emacs by chance while looking at some changelog
entry in the pinentry repo, I think, and the figured out what it was by
reading the configure.ac file) and I don't think it qualifies as user
friendly. The reason I decided to look it up in the first place was that
while the gtk popup diolog works fine on an X display, I wanted
something that would work in a terminal as well. And unfortunately it
seems pinentry-curses can't be run through Emacs, well I didn't manage
anyway :)

Joakim




  parent reply	other threads:[~2016-02-09  9:54 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
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 [this message]
     [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=87y4aujjjd.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.