* encrypting file uses revoked key
@ 2014-03-23 10:16 Daniel Krenn
2014-04-20 7:59 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Krenn @ 2014-03-23 10:16 UTC (permalink / raw)
To: emacs-orgmode
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?
FYI: Before creating my current gpg key, everything was fine.
Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: encrypting file uses revoked key
2014-03-23 10:16 encrypting file uses revoked key Daniel Krenn
@ 2014-04-20 7:59 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2014-04-20 7:59 UTC (permalink / raw)
To: Daniel Krenn; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-20 7:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-23 10:16 encrypting file uses revoked key Daniel Krenn
2014-04-20 7:59 ` Bastien
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).