unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Colin Baxter <m43cap@yandex.com>
To: help-gnu-emacs@gnu.org
Subject: Stop emacs caching gpg keys
Date: Sat, 30 Jan 2021 15:37:13 +0000	[thread overview]
Message-ID: <87y2gasafq.fsf@yandex.com> (raw)

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.




             reply	other threads:[~2021-01-30 15:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-30 15:37 Colin Baxter [this message]
2021-01-30 15:54 ` Stop emacs caching gpg keys 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

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87y2gasafq.fsf@yandex.com \
    --to=m43cap@yandex.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.
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).