* Re: Controlling gpg-agent from Emacs [not found] <mailman.7959.1386061973.10748.help-gnu-emacs@gnu.org> @ 2013-12-04 16:08 ` Ted Zlatanov 2013-12-06 9:49 ` Alex Bennée [not found] ` <mailman.8343.1386323403.10748.help-gnu-emacs@gnu.org> 0 siblings, 2 replies; 4+ messages in thread From: Ted Zlatanov @ 2013-12-04 16:08 UTC (permalink / raw To: help-gnu-emacs On Tue, 03 Dec 2013 09:12:53 +0000 Alex Bennée <kernel-hacker@bennee.com> wrote: AB> I have a problem when running Emacs in terminal mode when triggering AB> things which require GPG (like "pass" to fetch a password). The pinentry AB> program doesn't seem to play well with Emacs causing the terminal to get AB> very confused. AB> Reading through the gpg-agent docs seems to imply it should be possible AB> to feed your passphrase to the agent ahead of time so it's ready to run AB> the decryption when gnupg is invoked (gpg-preset-passphrase). However I AB> can't get that to work (gpg-agent seems to think it's an unsupported AB> command). AB> I also found a shell script (https://github.com/ecraven/pinentry-emacs) AB> which seems to use emacsclient to prompt for a passphrase but the page AB> was loaded with enough caveats I haven't tried it yet. AB> Has anyone else got a better solution? What version of GPG? Ted ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Controlling gpg-agent from Emacs 2013-12-04 16:08 ` Controlling gpg-agent from Emacs Ted Zlatanov @ 2013-12-06 9:49 ` Alex Bennée [not found] ` <mailman.8343.1386323403.10748.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 4+ messages in thread From: Alex Bennée @ 2013-12-06 9:49 UTC (permalink / raw To: Ted Zlatanov; +Cc: help-gnu-emacs tzz@lifelogs.com writes: > On Tue, 03 Dec 2013 09:12:53 +0000 Alex Bennée <kernel-hacker@bennee.com> wrote: > <snip> > AB> Reading through the gpg-agent docs seems to imply it should be possible > AB> to feed your passphrase to the agent ahead of time so it's ready to run > AB> the decryption when gnupg is invoked (gpg-preset-passphrase). However I > AB> can't get that to work (gpg-agent seems to think it's an unsupported > AB> command). > > AB> I also found a shell script (https://github.com/ecraven/pinentry-emacs) > AB> which seems to use emacsclient to prompt for a passphrase but the page > AB> was loaded with enough caveats I haven't tried it yet. > > AB> Has anyone else got a better solution? > > What version of GPG? gnupg 2.0.20-1ubuntu3 gnupg-agent 2.0.20-1ubuntu3 I take it this option was removed? Cheers, -- Alex Bennée http://www.bennee.com/~alex ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.8343.1386323403.10748.help-gnu-emacs@gnu.org>]
* Re: Controlling gpg-agent from Emacs [not found] ` <mailman.8343.1386323403.10748.help-gnu-emacs@gnu.org> @ 2013-12-06 15:46 ` Ted Zlatanov 0 siblings, 0 replies; 4+ messages in thread From: Ted Zlatanov @ 2013-12-06 15:46 UTC (permalink / raw To: help-gnu-emacs On Fri, 06 Dec 2013 09:49:47 +0000 Alex Bennée <kernel-hacker@bennee.com> wrote: AB> tzz@lifelogs.com writes: >> On Tue, 03 Dec 2013 09:12:53 +0000 Alex Bennée <kernel-hacker@bennee.com> wrote: >> AB> <snip> AB> Reading through the gpg-agent docs seems to imply it should be possible AB> to feed your passphrase to the agent ahead of time so it's ready to run AB> the decryption when gnupg is invoked (gpg-preset-passphrase). However I AB> can't get that to work (gpg-agent seems to think it's an unsupported AB> command). >> AB> I also found a shell script (https://github.com/ecraven/pinentry-emacs) AB> which seems to use emacsclient to prompt for a passphrase but the page AB> was loaded with enough caveats I haven't tried it yet. >> AB> Has anyone else got a better solution? >> >> What version of GPG? AB> gnupg 2.0.20-1ubuntu3 AB> gnupg-agent 2.0.20-1ubuntu3 AB> I take it this option was removed? Yeah, I complained about it too but from another angle (you can't cache the EPA/EPG passphrase in Emacs anymore, like you could with GnuPG 1.x). Based on Daiki Ueno's explanations in emacs-devel[1] and in the bug reports[2] , I don't think we can expect improvements for the users here (it's a conscious decision by the GnuPG project). To avoid depending on the GnuPG project's decisions and for other reasons I want to implement native encryption in Emacs and submitted patches to that end. Stefan requested that we get external loading of libraries through FFI and other mechanisms working first[3]. This is a much more complex task and AFAIK no one bu me wants to implement it. So it will take a while; help is welcome. Meanwhile the best advice is to downgrade to GnuPG 1.x. Ted [1] https://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00075.html [2] http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15552 [3] https://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00168.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Controlling gpg-agent from Emacs @ 2013-12-03 9:12 Alex Bennée 0 siblings, 0 replies; 4+ messages in thread From: Alex Bennée @ 2013-12-03 9:12 UTC (permalink / raw To: help-gnu-emacs@gnu.org Help Hi, I have a problem when running Emacs in terminal mode when triggering things which require GPG (like "pass" to fetch a password). The pinentry program doesn't seem to play well with Emacs causing the terminal to get very confused. Reading through the gpg-agent docs seems to imply it should be possible to feed your passphrase to the agent ahead of time so it's ready to run the decryption when gnupg is invoked (gpg-preset-passphrase). However I can't get that to work (gpg-agent seems to think it's an unsupported command). I also found a shell script (https://github.com/ecraven/pinentry-emacs) which seems to use emacsclient to prompt for a passphrase but the page was loaded with enough caveats I haven't tried it yet. Has anyone else got a better solution? Cheers, -- Alex Bennée http://www.bennee.com/~alex ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-06 15:46 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <mailman.7959.1386061973.10748.help-gnu-emacs@gnu.org> 2013-12-04 16:08 ` Controlling gpg-agent from Emacs Ted Zlatanov 2013-12-06 9:49 ` Alex Bennée [not found] ` <mailman.8343.1386323403.10748.help-gnu-emacs@gnu.org> 2013-12-06 15:46 ` Ted Zlatanov 2013-12-03 9:12 Alex Bennée
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.