Re: [O] encrypting file uses revoked key

2014-04-20 Thread Bastien
Hi Daniel,

Daniel Krenn kr...@aon.at writes:

 I create a new file test.gpg and write

   # -*- mode:org; epa-file-encrypt-to: (b...@blub.com) -*-

 (b...@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



[O] encrypting file uses revoked key

2014-03-23 Thread Daniel Krenn
I create a new file test.gpg and write

  # -*- mode:org; epa-file-encrypt-to: (b...@blub.com) -*-

(b...@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