unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Stop emacs caching gpg keys
@ 2021-01-30 15:37 Colin Baxter
  2021-01-30 15:54 ` moasenwood--- via Users list for the GNU Emacs text editor
  2021-01-30 17:14 ` Gregor Zattler
  0 siblings, 2 replies; 7+ messages in thread
From: Colin Baxter @ 2021-01-30 15:37 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I have GnuPG (gpg) version 2.1.18. As is well known, this version of gpg
has the utterly annoying habit of storing gpg keys in the cache for some
time (1 hour default, I think).

To stop this happening I run 'gpgconf --kill gpg-agent'. This works fine
in bash scripts that control the encryption, where I can put that
command in the script.

This is not so straightforward if I encrypt a file using emacs. On
saving, and removing the buffer, a supposedly encrypted file can be
opened without the need to enter a password. Of course, I can open a
shell within emacs and run 'gpgconf --kill gpg-agent' in order to clear
the cache. But is there a simpler way - an elisp way - of achieving the
same result?

Thanks.

Colin Baxter.




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-01-31  8:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-30 15:37 Stop emacs caching gpg keys Colin Baxter
2021-01-30 15:54 ` moasenwood--- via Users list for the GNU Emacs text editor
2021-01-30 16:06   ` Colin Baxter
2021-01-30 16:48     ` moasenwood--- via Users list for the GNU Emacs text editor
2021-01-30 16:59       ` Colin Baxter
2021-01-30 17:14 ` Gregor Zattler
2021-01-31  8:37   ` Colin Baxter

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).