Subject: bug#22941: 25.1.50; epa-list-secret-keys does not find gpg private keys

From: Daiki Ueno <[email-masked]>
Date: Mon, 14 Mar 2016 15:01:09 +0900

Iñigo Serna <[email-masked]> writes:

> I use 'setq' as mentioned in the first message.
> Even, "gpg" is showed in the error message:
>
> """
> Error while decrypting with "gpg":
>
> gpg: encrypted with 2048-bit RSA key, ID 89B28C43, created 2016-01-12
>       "Iñigo Serna (XXX.YY) <[email-masked]>"
> gpg: decryption failed: No secret key
> """

That's strange indeed.  Are you able to check what is happening by
setting (setq epg-debug t) and looking at the " *epg-debug*" buffer
(note the first whitespace)?  The buffer should contain the actual
command-line and the interactions between Emacs and the "gpg" command.

Regards,
-- 
Daiki Ueno