emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: Daniel Krenn <krenn@aon.at>
Cc: emacs-orgmode@gnu.org
Subject: Re: encrypting file uses revoked key
Date: Sun, 20 Apr 2014 09:59:02 +0200	[thread overview]
Message-ID: <87a9bgph2x.fsf@bzg.ath.cx> (raw)
In-Reply-To: <532EB48A.70307@aon.at> (Daniel Krenn's message of "Sun, 23 Mar 2014 11:16:42 +0100")

Hi Daniel,

Daniel Krenn <krenn@aon.at> 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]
>
>   <list of keys...>
>
> 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

      reply	other threads:[~2014-04-20  7:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-23 10:16 encrypting file uses revoked key Daniel Krenn
2014-04-20  7:59 ` Bastien [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a9bgph2x.fsf@bzg.ath.cx \
    --to=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=krenn@aon.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).