From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jens Schmidt Newsgroups: gmane.emacs.devel Subject: Re: epa.texi: Emacs and GnuPG pinentry Date: Mon, 14 Aug 2023 22:10:39 +0200 Message-ID: <89ec500d-9141-2545-d999-f91e95b09cac@vodafonemail.de> References: <4c2b40c1-2bd6-47cb-6d66-9addd90d7518@vodafonemail.de> <87bkfa3paq.fsf@thaodan.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3423"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Cc: emacs-devel@gnu.org To: =?UTF-8?Q?Bj=c3=b6rn_Bidar?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 14 22:12:07 2023 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 1qVdv5-0000ez-M4 for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Aug 2023 22:12:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVduM-0001i6-NP; Mon, 14 Aug 2023 16:11:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qVduD-0001hY-Hg for emacs-devel@gnu.org; Mon, 14 Aug 2023 16:11:13 -0400 Original-Received: from mr5.vodafonemail.de ([145.253.228.165]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qVdu1-0007uk-Ow for emacs-devel@gnu.org; Mon, 14 Aug 2023 16:11:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1692043850; bh=+UuSr1d3j2le/hrVzSxnLI1okTZJDT89Qb944e++V0c=; h=Message-ID:Date:User-Agent:Subject:Content-Language:To:References: From:In-Reply-To:Content-Type:From; b=WxnEWQ5bWDUkVFA14wt0gi4duRdtbPIb+d6/IqCXiQyfqKVKy4w7/mszTr+icMzZH 2lrEJEiSnyHZOTsmCqlcqIInBsmvOocSjR7rrHinV0ioDRzAAYUahXcqxD42e8cwf/ 9nRIdi3dYufHCGgLBgpeQ47L/HxIlvM40iuKBjiQ= Original-Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr5.vodafonemail.de (Postfix) with ESMTPS id 4RPlrp3PVHz1y4p; Mon, 14 Aug 2023 20:10:50 +0000 (UTC) Original-Received: from [192.168.178.41] (port-92-194-93-90.dynamic.as20676.net [92.194.93.90]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4RPlrf6vFbzKm4D; Mon, 14 Aug 2023 20:10:39 +0000 (UTC) Content-Language: de-DE-frami, en-US In-Reply-To: <87bkfa3paq.fsf@thaodan.de> X-purgate-type: clean X-purgate: clean X-purgate-size: 1324 X-purgate-ID: 155817::1692043846-3DFFE106-217968F7/0/0 Received-SPF: pass client-ip=145.253.228.165; envelope-from=jschmidt4gnu@vodafonemail.de; helo=mr5.vodafonemail.de X-Spam_score_int: -50 X-Spam_score: -5.1 X-Spam_bar: ----- X-Spam_report: (-5.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, NICE_REPLY_A=-2.265, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308745 Archived-At: On 2023-08-14 12:13, Björn Bidar wrote: > I'm not 100% sure but I think not all pinentry's support loopback. > The user has to make sure that his does support it. Hm ... that let me worry a bit, since I updated the documentation in epa.texi some time ago already. So I tested, all running from an Emacs 27 -Q: *** epg-pinentry-mode == nil echo RELOADAGENT | gpg-connect-agent # only pinentry executable on my system sudo chmod a-x /usr/bin/pinentry-gnome3 (setq epg-pinentry-mode nil) C-x C-f ~/tmp/test/xxx.pgp => Error while decrypting with "/usr/bin/gpg": gpg: encrypted with 3072-bit RSA key, ID D0EB77D91C0802D6, created 2022-12-03 "test-key" gpg: public key decryption failed: No pinentry gpg: decryption failed: No secret key So far so expected. *** epg-pinentry-mode == 'loopback echo RELOADAGENT | gpg-connect-agent sudo chmod a-x /usr/bin/pinentry-gnome3 (setq epg-pinentry-mode 'loopback) C-x C-f ~/tmp/test/xxx.pgp => file gets found and decrypted without problems >From that test I'd conclude that loopback pinentry works even if no pinentry executable is available at all, so I somewhat doubt that some pinentry executables would not support it. Or did I misunderstand you here? Or do you have further information? Thanks!