GNU bug report logs -
#12923
24.2; epa-file--find-file-not-found-function: Opening input file: Can't decrypt, Exit
Previous Next
Reported by: Oleksandr Gavenko <gavenkoa <at> gmail.com>
Date: Sun, 18 Nov 2012 13:44:02 UTC
Severity: normal
Found in version 24.2
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 12923 <at> debbugs.gnu.org (full text, mbox):
On 2012-11-20, Daiki Ueno wrote:
> Oleksandr Gavenko <gavenkoa <at> gmail.com> writes:
>
>> When I try open any .gpg files I get error:
>
> Correction: "open existing, not encrypted .gpg files"
>
Yes!
>> Root of issue come from Emacs call:
>>
>> $ gpg "--no-tty" "--status-fd" "1" "--yes" "--enable-progress-filter" \
>> "--command-fd" "0" "--output" "/tmp/epg-output3999nru" \
>> "--decrypt" "--" "/home/user/.gnupg/pubring.gpg"
>
>> So this error occur on opening files with '.gpg' extension.
>
> So what do you want instead? I think you get a similar error when
> opening a .tar.gz file which is not a gzip compressed tar archive.
>
> If you want to edit the binary contents, you can use M-x
> find-file-literally. If you want to browse your keyring, you can use
> M-x epa-list-keys.
My point that this file created by:
$ gpg --version
gpg (GnuPG) 1.4.12
from Debian distribution and I don't take .gpg extension to them personally
(this do gpg privately without my knowledge):
$ ls ~/.gnupg/*.gpg
/home/user/.gnupg/pubring.gpg
/home/user/.gnupg/secring.gpg
/home/user/.gnupg/trustdb.gpg
So Emacs break some usual convention used by gpg about .gpg extension...
$ file /home/user/.gnupg/pubring.gpg
/home/user/.gnupg/pubring.gpg: GPG key public ring
I expect that Emacs open this file in any case (ever if it doesn't support
some "standard" .gpg format - open it literary as fall back!).
--
Best regards!
This bug report was last modified 3 years and 170 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.