From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: GnuPG passphrase in Emacs minibuffer Date: Sun, 21 Aug 2022 08:58:32 +0300 Message-ID: <83pmgucf3r.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38059"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "Andrew L. Moore" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 21 07:59:35 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oPdzi-0009ju-Ac for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Aug 2022 07:59:34 +0200 Original-Received: from localhost ([::1]:40368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPdzh-0000Jq-3R for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Aug 2022 01:59:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPdyi-00083h-CN for emacs-devel@gnu.org; Sun, 21 Aug 2022 01:58:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37260) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPdyi-00043p-3u; Sun, 21 Aug 2022 01:58:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=uZKvS4+kotpOLZC+ZdKv2JL7HG1R1/bYCnu0Re3yFZ8=; b=Blm6iSOz0D1M +wfYQdvYXQQPB7gGppeLFe4faE6TPOvz+2jvv4mthj1bDxsU8Da2Y3JdAeC2DV1jX1Gxb/ZLUTxaq 3I+K8dHCgxYpPJjKSlXb1ZWA8aRyTCarKb4fSK6fl23fFDmpO3GwM7YskTE2xbo5g7nRE9x/JTxhe KyICKgARjKGG3r0jaMQzZmFJiF0USDcpMvPVhEsP6nyw3ZS+tCCUDLWiRemBabipXcH1g1D5zwwyi 97Rtep/jE0op4vN81PHvrdmQyiUzxSgrNCYMHAOnmHIggFAubSlC+oI1FBsuMJTK5pEpaL7i7SzT8 QhAPI7H150Q2SErvgTog5A==; Original-Received: from [87.69.77.57] (port=4082 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPdyh-00083f-Ds; Sun, 21 Aug 2022 01:58:31 -0400 In-Reply-To: (slewsys@gmail.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293680 Archived-At: > Date: Sun, 21 Aug 2022 00:44:25 -0400 > From: "Andrew L. Moore" > > To allow a GnuPG passphrase in the Emacs minibuffer, I use the external > Emacs package pinentry.el in loopback mode*: > > (setq epg-pinentry-mode 'loopback) > > Unfortunately, this doesn't work on Debain-based systems without > upgrading the pinentry source (use: git://git.gnupg.org/pinentry.git). > > But it turns out that pinentry.el may not be required any more. It is > enough to add to the file ~/.gnupg/gpg.conf the line: > > pinentry-mode loopback > > and to ~/.gnupg/gpg-agent.conf: > > allow-loopback-pinentry > > Restart gpg-agent and that's it. The most obvious difference is that > pinentry.el provides a more informative prompt, e.g., > > [[1399721]@slewsys.org] Please enter the passphrase to unlock the > OpenPGP secret key: > "Andrew L. Moore " > 255-bit EDDSA key, ID 0x0AB16F2E536D3DB5, > created 2021-11-01.: > > versus when GnuPG runs PINEntry in loopback mode: > > Enter passphrase: This is in Emacs NEWS that shipped with Emacs 26, no?