From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oO7AAACv1mNewAAAbAwnHQ (envelope-from ) for ; Sun, 29 Jan 2023 18:38:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YDhxAACv1mNwTQEAauVa8A (envelope-from ) for ; Sun, 29 Jan 2023 18:38:08 +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 8B2C739E10 for ; Sun, 29 Jan 2023 18:38:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMBcO-0000PB-Cq; Sun, 29 Jan 2023 12:37:28 -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 1pMBcM-0000Ow-CC for emacs-orgmode@gnu.org; Sun, 29 Jan 2023 12:37:26 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMBcJ-00074u-Su for emacs-orgmode@gnu.org; Sun, 29 Jan 2023 12:37:25 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pMBcI-0009KV-Hc for emacs-orgmode@gnu.org; Sun, 29 Jan 2023 18:37:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Karl Voit Subject: Re: org-crypt fails if default key is expired while non-default key is to be used Date: Sun, 29 Jan 2023 18:37:14 +0100 Organization: www.karl-voit.at Message-ID: <2023-01-29T18-33-58@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> User-Agent: slrn/1.0.3 (Linux) X-GPG-Key: http://www.Karl-Voit.at/Karl_Voit_GnuPG_public_key.gpg X-Registered-Linux-User: 224337 X-Confession: Pastafarian http://www.venganza.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Reply-To: Karl Voit 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675013887; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:references:references:list-id: list-help:list-unsubscribe:list-subscribe:list-post; bh=Tlm4HoD2RneUvHAo/pzh0LUCe5eogTuyyqtSmP4LZDU=; b=EPQ+QI4MyPVeAu6kQJsVzdjiPQDDMAh2yI57AbYR+pcoSnjaqmaSZBaZxM07xjfRJt8R7r ET8FDRvq0cklxEhuTsVJCpwhGF7WgxXxJmB22dNmpeLVZ+Z5E3mA9thP2GHrq53jrsNd/V TGxc5fz1hh5Mn8Bcdujis4pOsKBg/5S6B9l9ENBoCBXSqlrJs5tI11f+6WomjTCYw09vR4 6gCnah/mMkewdbBk/eptZfnExuiXN341BYl2mjjAEGijscwu0Co/3W2YH+qQLXV6MYYkCd MYC7ZtB0hhcK4dSgzcJux6GnABohpXN+lysY2pq263bnq1EFi7nNHLG+6p2KHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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-Seal: i=1; s=key1; d=yhetil.org; t=1675013887; a=rsa-sha256; cv=none; b=Lnqiqta7PmFMyj/RNrnnwH2kDPB3gahIoHK1okVAkSFAu0PKAKz6Lh6gtGqsZ2biyNmRJK 2TGQ9CHTJ4xmTjUKeaTgR8QAw0ozpNYyMsWF1qjkVKOQOjfCjT23Nx5AjR6zmAluLqSJSE EJfW+9yUseNhyNuwoMSCsTlm1pmyCpC9vF7OGdEYeTppuQLVXsrUPlPI9H4rNbgwh6nail cM+hSO/CIO2xrrsEyIyPYgR6KeMbDGeP1LqFbaMgjYqyhA8W55oAxmoJ1NHIyPqA+9uapn FQNfI+jqCoWIV1FRdcRdc46JJk8fPf10iBsquW7/CP82MSXVkhM79epbEj/Zvg== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.48 X-Spam-Score: -3.48 X-Migadu-Queue-Id: 8B2C739E10 X-TUID: e/qegiawp0B1 Hi Ihor, * Ihor Radchenko wrote: > 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? It shows: (#s(epg-key ultimate (#s(epg-sub-key ultimate ... nil 1 4096 "ABC12345" 1515327255 nil "AAAAAAAA...ABC12345") #s(epg-sub-key ultimate ... nil 1 4096 "FFFFFFF" 1515327255 nil "FFFF.FFFFFFFF")) (#s(epg-user-id ultimate "Karl Voit (Internal key for orgmode) " nil)))) ... with ABC12345 being the correct key for org-crypt and FFFFFFF being my default OpenPGP key. -- get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode: > get Memacs from https://github.com/novoid/Memacs < Personal Information Management > http://Karl-Voit.at/tags/pim/ Emacs-related > http://Karl-Voit.at/tags/emacs/