all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: caching of passphrases for symmetrically encrypted files
Date: Mon, 17 Oct 2016 09:02:57 +0300	[thread overview]
Message-ID: <83funvzf5a.fsf@gnu.org> (raw)
In-Reply-To: <1476658125.3072.26.camel@mailup.net> (message from Jim Gomi on Sun, 16 Oct 2016 17:48:45 -0500)

> From: Jim Gomi <gomi@mailup.net>
> Date: Sun, 16 Oct 2016 17:48:45 -0500
> 
> 
> Since I upgraded to emacs 25.1.1 under Fedora 24, the caching of
> passphrases for symmetrically encrypted files  has stopped working.
> 
> According to the documentation, 
> https://www.gnu.org/software/emacs/manual/html_mono/epa.html#Caching-Pa
> ssphrases
> I can either use GnuPG 1.4, or configure gpg-agent. But I cannot get
> either of these to work.
> 
> 1) Using GnuPG 2.1.13
> I tried adding this to ~/.gnupg/gpg-agent.conf:
> 
> allow-emacs-pinentry
> 
> but I am still asked to retype the passphrase twice when saving the
> file.
> Is there something else I should do?

See

  https://lists.gnu.org/archive/html/emacs-devel/2014-11/msg00421.html

for how to do this with GnuPG 2.x.

> 2) Using GnuPG 1.4 
> I tried adding this to my .emacs file:
> 
> (setq epg-gpg-program "/usr/bin/gpg")
> (setenv "GPG_AGENT_INFO" nil)
> (setq epa-file-cache-passphrase-for-symmetric-encryption t)
> 
> but it had no effect.
> /usr/bin/gpg is the GnuPG 1.4 executable.

AFAIU, you are customizing epg-gpg-program incorrectly.  See
bug#24229:

  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24229



  reply	other threads:[~2016-10-17  6:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-16 22:48 caching of passphrases for symmetrically encrypted files Jim Gomi
2016-10-17  6:02 ` Eli Zaretskii [this message]
2016-10-18 13:13   ` Jim Gomi
2016-10-18 14:41     ` Eli Zaretskii

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=83funvzf5a.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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.