From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: encrypting file uses revoked key Date: Sun, 20 Apr 2014 09:59:02 +0200 Message-ID: <87a9bgph2x.fsf@bzg.ath.cx> References: <532EB48A.70307@aon.at> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wbmee-0005EC-1J for emacs-orgmode@gnu.org; Sun, 20 Apr 2014 03:59:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WbmeZ-0003OG-Ck for emacs-orgmode@gnu.org; Sun, 20 Apr 2014 03:59:11 -0400 Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]:38674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbmeZ-0003OB-5o for emacs-orgmode@gnu.org; Sun, 20 Apr 2014 03:59:07 -0400 Received: by mail-wg0-f46.google.com with SMTP id b13so1796513wgh.5 for ; Sun, 20 Apr 2014 00:59:06 -0700 (PDT) In-Reply-To: <532EB48A.70307@aon.at> (Daniel Krenn's message of "Sun, 23 Mar 2014 11:16:42 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Daniel Krenn Cc: emacs-orgmode@gnu.org Hi Daniel, Daniel Krenn writes: > I create a new file test.gpg and write > > # -*- mode:org; epa-file-encrypt-to: ("bla@blub.com") -*- > > (bla@blub.com replaced by my mail address) as the first line. Then I > save this file and I'm asked > > Select recipents for encryption. > If no one is selected, symmetric encryption will be performed. > - `m' to mark a key on the line > - `u' to unmark a key on the line > [Cancel][OK] > > > > from which I select my current key. The file is saved and I can open it > again (inserting my passphrase for my key). > > Now, when I change something in the file and then want to save it, I get > the following error: > > byte-code: Opening output file: Encrypt failed: ((exit) (invalid- > recipient (reason . 0) (requested-recipient . "2A10BC79E59DAB19"))) > > The key 2A10BC79E59DAB19 is my old key, which has been revoked. > > So what goes wrong here? Not sure. Can you check the value of the CRYPTKEY property? If it looks good, maybe instrument the following functions: org-decrypt-entry org-crypt-key-for-heading M-x find-function RET org-decrypt-entry RET M-x edebug-defun RET M-x find-function RET org-crypt-key-for-heading RET M-x edebug-defun RET Then proceed with your test. If the key looks good, maybe that's an issue with EPA, not Org. HTH, -- Bastien