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 ms5.migadu.com with LMTPS id pASRI3Hu2GPhFwEAbAwnHQ (envelope-from ) for ; Tue, 31 Jan 2023 11:33:21 +0100 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 aG56InHu2GP87AAAauVa8A (envelope-from ) for ; Tue, 31 Jan 2023 11:33:21 +0100 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 3A2602D44D for ; Tue, 31 Jan 2023 11:33:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMnvs-0003sI-K0; Tue, 31 Jan 2023 05:32:08 -0500 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 1pMnvp-0003rV-5G for emacs-orgmode@gnu.org; Tue, 31 Jan 2023 05:32:06 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMnvm-0008Fy-L1 for emacs-orgmode@gnu.org; Tue, 31 Jan 2023 05:32:04 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E2949240463 for ; Tue, 31 Jan 2023 11:31:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1675161118; bh=4CEol4B8b5ZXSJt32ykBtHrp9YcMW0Ko8EVSDHhuVZ0=; h=From:To:Cc:Subject:Date:From; b=p1atbwUUosyaW0NVpaKYv/hWxPvBUjtGfezT9sR6myOaiflJkf92dbTtJac5Ex+Ik 2cXKjD2m9dkSxzs2wYrtt0wXsgbJNa5VW97rCh/QIO+UN86lklUPBbaQCIwPyVSNtL izwBFoMYntAdYZGQ6GI6is73qpR7H3FsvtjNjBEimBlZAPy+fq6Duc3Y0Df8WIFS6g puuYBA4s72Q1FzKjXpZl85ySiJwtuTryIWbdrF+0kqmXRNvuNGDIEDk5rmEyzJZevN cPiC3C3wNUbnGuaYYb65x715cSZZwjH2HX85zPWMW3NQSNdicD7rzTkPtYBOKUAPX3 qca/FCIcIcLfA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4P5hDq3tyGz9rxX; Tue, 31 Jan 2023 11:31:55 +0100 (CET) From: Ihor Radchenko To: Karl Voit Cc: emacs-orgmode@gnu.org Subject: Re: org-crypt fails if default key is expired while non-default key is to be used In-Reply-To: <2023-01-30T22-59-25@devnull.Karl-Voit.at> References: <2023-01-22T18-32-17@devnull.Karl-Voit.at> <875ycx7dzx.fsf@localhost> <2023-01-23T15-55-10@devnull.Karl-Voit.at> <875ycw70ri.fsf@localhost> <2023-01-29T18-33-58@devnull.Karl-Voit.at> <87pmaw3z94.fsf@localhost> <2023-01-30T22-59-25@devnull.Karl-Voit.at> Date: Tue, 31 Jan 2023 10:32:31 +0000 Message-ID: <87zg9z2dvk.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675161201; a=rsa-sha256; cv=none; b=cRY9cRBbi6UuKY+OEEUxsyuagm+OpgRqFVRaDkFmreTjIKO4Ba1dsQ6lLthekSP8OhmW5z p6BTWHKXnHufFPKhhPjlkMp9NkFCfAmVJSbV29j5d38oMF0bBTQf7Ijs0q3V2DoEIMucUD sgHX0UuJxP6wKvgj2EBc7eM5Bm5goOqjclGa6qB+1NFuyk0bLvw/eTECLYz68e00skXfFQ pgvXzb+8Q0xYNJY+EuvffnNHzsAMi0pitVppD/j90zC8BhtdPpy8AlBILWBDUwz4KQFK1+ j5wNFSRwansMvnGl+fG52zs/RUdiR1oFBVC1QJ3ADCH9H72s2uRnTa621Hk9zQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=p1atbwUU; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675161201; 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=XsmBrPxyMUesxkfgGGO4aVDo6Qb85OK34ISOM5UG1eY=; b=D3mpZk+PvM/2Wj9p1nBxJSb/Bk9ve6WvMuvooHJyL2Q0ns5+H/oVvVKOkrWtXGsPPAPRjO DBKsDkEoy4HRZUvBe6bxc27sGCJHZ8PnRJ+Nn1CXGoY6j8cyBwU8FQ2F3MdWuJpPP05RJI bHunvTQ8ZKJ1O4Vtb3zed1HHknoNonlgOCii6WtWHwophMwiFc71sx/2YPAlvDrOzIH1OV HA4w88Yf6Rl8Zyv/iFBJVky7ugWYwWcDNM9hcZe0oTHGNRZzWaGlK7bBdBF1qCyqHSrpJo 4V870pOt2fVqnnU1bw6gf+RTuYnBkGHV7LU1ax2jREN8LEL0ycK+p8CCsPnDtw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=p1atbwUU; 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"; dmarc=pass (policy=none) header.from=posteo.net X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.54 X-Spam-Score: -4.54 X-Migadu-Queue-Id: 3A2602D44D X-TUID: Hn2J4nTTTxeK Karl Voit writes: >> Ok. What about >> >> (let ((context (epg-make-context nil t t))) >> (epg-decrypt-string context (epg-encrypt-string context "test" (epg-list-keys context org-crypt-key)))) >> > > It asks me for the passphrase of the orgmode key (the correct one) > and prints out "test". We just followed what org-crypt does... And you see no error. I have no more ideas how to investigate the original failure without a reproducer. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at