From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Colin Baxter Newsgroups: gmane.emacs.help Subject: Re: Stop emacs caching gpg keys Date: Sun, 31 Jan 2021 08:37:33 +0000 Message-ID: <87lfc9mrhu.fsf@yandex.com> References: <87y2gasafq.fsf@yandex.com> <20210130171418.GF8430@no.workgroup> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16250"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 31 09:38:06 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l68FC-00049E-Dk for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 31 Jan 2021 09:38:06 +0100 Original-Received: from localhost ([::1]:34800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l68FB-0005gS-Dg for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 31 Jan 2021 03:38:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l68Er-0005gL-B1 for help-gnu-emacs@gnu.org; Sun, 31 Jan 2021 03:37:45 -0500 Original-Received: from forward103o.mail.yandex.net ([2a02:6b8:0:1a2d::606]:43277) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l68En-00040x-Uj for help-gnu-emacs@gnu.org; Sun, 31 Jan 2021 03:37:45 -0500 Original-Received: from myt6-5c8bb24560be.qloud-c.yandex.net (myt6-5c8bb24560be.qloud-c.yandex.net [IPv6:2a02:6b8:c12:299e:0:640:5c8b:b245]) by forward103o.mail.yandex.net (Yandex) with ESMTP id 353875F817C0 for ; Sun, 31 Jan 2021 11:37:36 +0300 (MSK) Original-Received: from myt5-aad1beefab42.qloud-c.yandex.net (myt5-aad1beefab42.qloud-c.yandex.net [2a02:6b8:c12:128:0:640:aad1:beef]) by myt6-5c8bb24560be.qloud-c.yandex.net (mxback/Yandex) with ESMTP id 5Sl1E3nWYT-bZGGH9Jb; Sun, 31 Jan 2021 11:37:36 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1612082256; bh=TFIovR2w4NEM0iNXzGNlYz2XvKTqYh/CchuIDgk8pKY=; h=In-Reply-To:Subject:To:From:Message-ID:Cc:Date:References; b=ZDZus7dLcNLz5rBWa02udwvEWtlc2BzXc6jIK41PeV/lIxDQSVVyIp3itX48UykJL yGoqdg7YaxD/gGy8La+aBeoDhL2Ea+L8cmDGWC9G5cGgCOj0Fkf1c1syfT97gljvCf GUk4q7vcc+jZXBEoEO9+2/IMIQDClIqRFBEeMW+c= Authentication-Results: myt6-5c8bb24560be.qloud-c.yandex.net; dkim=pass header.i=@yandex.com Original-Received: by myt5-aad1beefab42.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id ClsGZzejdG-bZmewSPu; Sun, 31 Jan 2021 11:37:35 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T In-Reply-To: <20210130171418.GF8430@no.workgroup> (Gregor Zattler's message of "Sat, 30 Jan 2021 18:14:18 +0100") Face: iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeBAMAAAAodabAAAAAB3RJTUUH1wQdAAY04/L8hgAA AAlwSFlzAAAewQAAHsEBw2lUUwAAAARnQU1BAACxjwv8YQUAAAASUExURc7OzpwAAAAAAP////8A AGNj/2aqqTQAAAA8SURBVHjaYzA2NnEBAmdj01D8wNgYpM7F2JiBgYFREAgEGJiU8AMGBpA6QaCG UVtGbRm1ZdSWUVsGjS0Aq20lJnMawnkAAAAASUVORK5CYII= Received-SPF: pass client-ip=2a02:6b8:0:1a2d::606; envelope-from=m43cap@yandex.com; helo=forward103o.mail.yandex.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127482 Archived-At: Hello Gregor, >>>>> Gregor Zattler writes: > Hi Colin, * Colin Baxter [30. Jan. 2021]: >> 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. > wouldn't it be easyier to configure gpg-agent: One would think so, but setting the time in which the cache holds the password is not what I want. I am happy to hold passwords in the cache but only up until the moment I want them removed, and of course this moment varies from job to job. I have looked at firestarter https://depp.brause.cc/firestarter/. This goes some way to want I want, but not all the way. I think I'll stick for the time being to using the shell-command as I mentioned in the OP. Thank you for your interest and help. Best wishes, Colin.