From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 KLmwHYahz2MvGQEAbAwnHQ (envelope-from ) for ; Tue, 24 Jan 2023 10:14:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KDrgHIahz2NM5AAAG6o9tA (envelope-from ) for ; Tue, 24 Jan 2023 10:14:46 +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 DFC1B3869B for ; Tue, 24 Jan 2023 10:14:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKFNK-0007Ir-Jc; Tue, 24 Jan 2023 04:13:55 -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 1pKFNG-0007IF-Ju for emacs-orgmode@gnu.org; Tue, 24 Jan 2023 04:13:50 -0500 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 1pKFND-0006qi-A3 for emacs-orgmode@gnu.org; Tue, 24 Jan 2023 04:13:49 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2C4AE2401CB for ; Tue, 24 Jan 2023 10:13:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1674551623; bh=KmT+xxNqb/u/lJ3qWOwRmWhn7icj4eB7eu3JB71P3kE=; h=From:To:Cc:Subject:Date:From; b=CZy9LDBv4Ar3JCYc3NkoFtH0pWWLMNMNzMTrBasexQwTkgsXHWzeddT7le8SS1kf2 iCF/T+NgvaHON9mMou+R8eIktyTbVYUvnzZRTGudJWLi7hve7yoTBDozHcJgKAvQ1W zNeeiE5I23qDPEkgrez7ZjLYdY9LU/K/W/9ngozUCvtNqmt5MS2IqLayi0+Dg6FxmQ k51Kc0oOKWeyJZ5U+tT9nzlmVOCL38WxeO05GmqsjklnaCq5aHF5CzRiyT0AgOMYlJ y2S74CR5iBZNX7akwXkzNXyU/eaDrmcBh1lIQAAPXELaxxs6y9RyYUHiQyR6jzInu4 tTzjXkeQNIuzg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4P1Lqn1bnmz6tmF; Tue, 24 Jan 2023 10:13:40 +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-23T15-55-10@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> Date: Tue, 24 Jan 2023 09:14:09 +0000 Message-ID: <875ycw70ri.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 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=1674551686; a=rsa-sha256; cv=none; b=ir1eRLQbycL8hQ88j6PexYOPzhU9LO+CQPJRWTqMdRgZnTuzk5qJfnLvgo/VIOyBvoslBF c+buUlhFFIVdWe0aJsYnt0nVVvS/N6QNV72eZ4aXMNMRu3t4sbW7pI+OWEOVzShoRQDjeF 2AyXQbXKN3W1GvBzyC3Mem1fiy1OZJE+jwxo1mfrZP+7XI8zgbNUlWhh2jo3z5K+o6Lmjs BgHlhgjLACwhRriC9xPqzRWK7eezTTbXbErYVbj2+RHao1m6wYrypSKj6aep942UofMfMv 2qD+GNCnKv0tJqItWDG6TAOCU4+tdgJyes1ouBqKSTYOVVU/C+VopsmFY42hDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674551686; 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=tVus7klPGakSzegPzRB5BUy/6riQtghQlCwMz23Is5s=; b=LHrvciFw8bTMBK1HpjVU/OWl8LkxeKR0OwhnIzjZCSocmNM0JfGdev5xLtzH53m6vFC4xS jBhjg1i+3h7NPIMp2L27OPhk7j5AAhGfE7W1KEnZ9BtZDOCBjrElXCLoKDNYbdOP6OqRnU UWC5I7TC/pFZWsEyz4D+PybShCTSnbTSENAitvt96ZN1NwSABUPjEgyEFKD4JX9/oD5giG 6Etgh3px982e/lasVqFCkVGYmKKtxD2njAl/St2LcFsIp9RPDMbXicsIaTe3HtP+x5ddHA Gu6YcYPr4bl9IjljzW2GZRmvKAPM14qVM0snx/94N8LxGTt6VwHhwcIHsp6qCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=CZy9LDBv; 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: scn0.migadu.com X-Migadu-Spam-Score: -6.65 X-Spam-Score: -6.65 X-Migadu-Queue-Id: DFC1B3869B Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=CZy9LDBv; 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-TUID: eNPrO93c4/Jj Karl Voit writes: >> May I know how exactly did you set `org-crypt-key'? Do you happen to >> have CRYPTKEY properties somewhere in your buffer? > > Sure. My config is on > https://github.com/novoid/dot-emacs/blob/master/config.org and I've > set it with: > > (setq org-crypt-key "ABC12345") ;; I may have to mask this online as well ;-) What is the return value of (epg-list-keys (epg-make-context nil t t) org-crypt-key) ? Does it show the right key? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at