From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yI0vBzD6UGQsZgEASxT56A (envelope-from ) for ; Tue, 02 May 2023 13:55:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oOrwBjD6UGRM8wAAauVa8A (envelope-from ) for ; Tue, 02 May 2023 13:55:28 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 428DE2B210 for ; Tue, 2 May 2023 13:55:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptoah-0005JD-Lp; Tue, 02 May 2023 07:54:43 -0400 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 1ptoag-0005J2-3p for emacs-orgmode@gnu.org; Tue, 02 May 2023 07:54:42 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptoaX-0002EZ-FY for emacs-orgmode@gnu.org; Tue, 02 May 2023 07:54:41 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 61E712402F8 for ; Tue, 2 May 2023 13:54:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1683028471; bh=oy0JRk6SX3D9SG1LoSBPs/Pi4o90XXoD8YGi9/g9WmA=; h=From:To:Cc:Subject:Date:From; b=e9KTJwwGX1lJ9W87Td4OubcgsF8Z9W2HM46e82nBH01Ia7YY07JzvaavFjZcSL+Px 9JgDwUXudRGIdHUeSLqrzVL4EIqYm2XRyEVz/rSue605AuEUOy/KDRDYmtEOxqwzTk P0aPTda4ZLbeBaGBtfOpldztW0v3yQC2Xeiqx5jEk/WnPJpIvegO+pnTwrZFIpMra+ /DOHp289SIDzOB7tyZ2tYARllqAyfd5qB0WJAcNZVEnGemL4NZ8FUYp+N31WfRXTSD MTvGZowgQMqTwe9HP6eyy1POlTFCnC+mxVOUwdVvZ31L28nTkLFAM7WK2RFfFcTdYJ llho95c9qgxzg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Q9dm66TBcz9rxP; Tue, 2 May 2023 13:54:30 +0200 (CEST) From: Ihor Radchenko To: "Christopher M. Miles" Cc: emacs-orgmode@gnu.org, Karl Voit Subject: Re: [EasyPG (epa)] Emacs can't save modified encrypted file In-Reply-To: References: <87pm7lyvdd.fsf@localhost> <87jzxsqyme.fsf@localhost> <874jow8eaf.fsf@localhost> <871qk08bwi.fsf@localhost> Date: Tue, 02 May 2023 11:57:36 +0000 Message-ID: <87jzxrdjyn.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683028528; a=rsa-sha256; cv=none; b=DUIeKbnFVsH7Hg6ywnd27ppUTh2jpLUdK4dMBp+uIddUBJ3Z9r5u+vFs5H2Co0tzhLyLoV n1lgWklIkM8hc4nFFDv/6/IEixfRJl9hvhLlnKTEokW7DR4ix35ceYaRVWciC6Lkvo0ilB iPZtVs/iCwDk/rK2J2TD/KojBsVX4lWng/XZTsnO7sKW1l1UeF92KbEKFgWVCdIPc8TnIo BfsanJ6aDiuvoqpcd+FbHxfq9jkNM4VoQ4jU4NhdzmJl6L7piq2vSTG44aFTwi//2OOdop C67rsAglfm5vdlC1NX2MptXOMfeFaC6a/wNoh6PWmHC9mfAAwi8aHKQdaG2K4w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=e9KTJwwG; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683028528; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=OZd4NHc/tizFA2zO+RVNg3oaXeeEMHBbl5pvkhXgkIw=; b=Q8lGUNMJkbdaBfqKlKH7xGwUXGdi77nld5fCp4q5/jGHcXZEyOTrbMM+/fGqGACYV6++Vz 3zs8NyKSzAj/TUV2JgeBazGfAh3mF5TIqcRZaA3SfVJpwpziMqXtL/i5MIBWhgvnPDTb6p dOUm63X0y/R3BVrQv42g87cCV+BfDUmA2bsJpWLCMkixOfhZNi2Qd3swXQcKBqWw6w/KaO /ZGLY9sxRj5avSddq7Rttjhfvuo1H/LMgn1mUfxGy91ft9p9mfWSH6NKadf28pnUpdfn3m eVCY39nhIuBSwF04/5TXtnZdUfJAA2AWaE8qg2+JYAaaoFEq8hEpcUmblGw0Sw== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=e9KTJwwG; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.69 X-Spam-Score: -4.69 X-Migadu-Queue-Id: 428DE2B210 X-TUID: 76Bq5VW4wKa7 "Christopher M. Miles" writes: > I downgrade gnupg, then the problem solved. But the downgrade version is > very old (gnupg@2.4.1 -> gnupg@2.2.41). I suspend problem is somewhere > else, like Emacs interaction with GnuPG process. Do you have any issues decrypting and encrypting files from command line? If no, what about from M-x shell? If yet no, what if you call gpg via `start-process'? > 4. I press =[C-g]= to quit got following stacktrace: > > #+begin_example > Debugger entered--Lisp error: (quit) > accept-process-output(# 1) This certainly looks like gpg itself is waiting for something and Emacs is waiting for gpg... > When I save modified "=~/.config/emacs/secrets/authinfo.gpg=", got prompt: > > #+begin_example > Untrusted key AEDA8A17BB08B786 Christopher Miles (stardiviner, numbchild) . Use anyway? (y or n) > #+end_example > If I input "n" for prompt: > > #+begin_example > Debugger entered--Lisp error: (file-error "Opening output file" "Encrypt failed" "Unusable public key: B8C4B8E547C32433 (key not tru...") This reminds me of https://orgmode.org/list/2023-01-22T18-32-17@devnull.Karl-Voit.at CC-ing Karl as he might be interested to join this discussion. > - [X] find bellowing two key ID belongs where > > Untrusted key "AEDA8A17BB08B786" ---> fingerprint "0DEF7425E79FE2E0090B424BAEDA8A17BB08B786" --> my old key > ((invalid-recipient (reason . 10) (requested . "B8C4B8E547C32433"))) --> "F09F650D7D674819892591401B5DF1C95AE89AC3" --> my current new gnupg key > > Question: I don't know why my current gnupg key and old gnupg key are together. > > Here is my Emacs EasyPG (epa) config: > > #+begin_src emacs-lisp > (use-package epa > ;; force Emacs to use its own internal password prompt instead of an external > ;; pinentry program. > :preface (setenv "GPG_AGENT_INFO" nil) I do not use this setting on my side and simply stick to gtk password prompt. Not sure if it is of any help, but on my side I used https://wiki.gentoo.org/wiki/GnuPG for GPG configuration. That wiki page is rather detailed - you might find some clues. Also, my gpg config, for reference https://github.com/yantar92/emacs-config/blob/master/system-config.org#gpg -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at