GNU bug report logs - #4077
Decrypting a file with EasyPG

Previous Next

Package: emacs;

Reported by: Matt Kayala <matt.kayala <at> gmail.com>

Date: Fri, 7 Aug 2009 20:25:06 UTC

Severity: wishlist

Tags: fixed

Merged with 3829, 8129

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4077 in the body.
You can then email your comments to 4077 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4077; Package emacs. (Fri, 07 Aug 2009 20:25:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matt Kayala <matt.kayala <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 07 Aug 2009 20:25:06 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Matt Kayala <matt.kayala <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Decrypting a file with EasyPG
Date: Fri, 7 Aug 2009 13:17:20 -0700
[Message part 1 (text/plain, inline)]
Hello,

Excuse any naivety in the question asking, but any help with the following
will be very much appreciated:

Using Emacs 23, built with NS on Mac OS 10.4..., and gpg built from fink, I
am having the following issue:

I can create a new buffer 'test.gpg', edit it, and save it, which encrypts
the file using one of my keys.

If I close the buffer, then try to open the file, (C-x C-f), I am asked for
my passphrase, then I get the following error in the minibuffer:  'File
exists, but cannot be read'.
This is not a permissions issue (775).  Also, decrypting from the command
line with gpg works fine.

Here are the messages in *Messages*:
/Users/mkayala/org/t: 0% (0/607)
File exists, but cannot be read


Here is the output on " *epg-debug*" for the encryption:
/sw/bin/gpg --no-tty --status-fd 1 --yes --enable-progress-filter
--command-fd 0 --output /tmp/epg-output61144iH --decrypt --
/Users/mkayala/org/test.gpg
gpg: can't open `/Users/mkayala/org/test.gpg'
gpg: decrypt_message failed: file open error
/sw/bin/gpg --no-tty --status-fd 1 --yes --enable-progress-filter
--command-fd 0 --output /tmp/epg-output6114XJj --encrypt -r EFAE0C7BEEBB2B1F
[GNUPG:] PROGRESS stdin ? 0 0
[GNUPG:] BEGIN_ENCRYPTION 2 9
[GNUPG:] PROGRESS stdin ? 20 0
[GNUPG:] END_ENCRYPTION

And for the decryption:
/sw/bin/gpg --no-tty --status-fd 1 --yes --enable-progress-filter
--command-fd 0 --output /tmp/epg-output6114kTp --decrypt --
/Users/mkayala/org/test.gpg
[GNUPG:] PROGRESS /Users/mkayala/org/t ? 0 607
[GNUPG:] ENC_TO 3D22E97EE828E82D 16 0
[GNUPG:] USERID_HINT 3D22E97EE828E82D Matt Kayala (MK) <
matt.kayala <at> gmail.com>
[GNUPG:] NEED_PASSPHRASE 3D22E97EE828E82D EFAE0C7BEEBB2B1F 16 0
[GNUPG:] GET_HIDDEN passphrase.enter
[GNUPG:] GOT_IT
[GNUPG:] GOOD_PASSPHRASE
gpg: encrypted with 2048-bit ELG-E key, ID E828E82D, created 2009-08-06
      "Matt Kayala (MK) <matt.kayala <at> gmail.com>"
[GNUPG:] BEGIN_DECRYPTION
[GNUPG:] PROGRESS /Users/mkayala/org/t ? 607 607
[GNUPG:] PLAINTEXT 62 1249671366
[GNUPG:] PLAINTEXT_LENGTH 20
[GNUPG:] DECRYPTION_OKAY
[GNUPG:] GOODMDC
[GNUPG:] END_DECRYPTION


If instead of using the epa-file, I try to directly do 'M-x epa-decrypt-file
RET test.gpg', I get the following error:

Decrypting test.gpg...0% (0/607)
epg-decrypt-file: Wrong type argument: listp, exit

And the corresponding " *epg-debug*" output:
/sw/bin/gpg --no-tty --status-fd 1 --yes --enable-progress-filter
--command-fd 0 --output /Users/mkayala/org/test --decrypt --
/Users/mkayala/org/test.gpg
[GNUPG:] PROGRESS /Users/mkayala/org/t ? 0 607
[GNUPG:] ENC_TO 3D22E97EE828E82D 16 0
[GNUPG:] USERID_HINT 3D22E97EE828E82D Matt Kayala (MK) <
matt.kayala <at> gmail.com>
[GNUPG:] NEED_PASSPHRASE 3D22E97EE828E82D EFAE0C7BEEBB2B1F 16 0
[GNUPG:] GET_HIDDEN passphrase.enter
[GNUPG:] GOT_IT
[GNUPG:] GOOD_PASSPHRASE
gpg: encrypted with 2048-bit ELG-E key, ID E828E82D, created 2009-08-06
      "Matt Kayala (MK) <matt.kayala <at> gmail.com>"
[GNUPG:] BEGIN_DECRYPTION
[GNUPG:] PROGRESS /Users/mkayala/org/t ? 607 607
[GNUPG:] PLAINTEXT 62 1249671366
[GNUPG:] PLAINTEXT_LENGTH 20
[GNUPG:] DECRYPTION_OKAY
[GNUPG:] GOODMDC
[GNUPG:] END_DECRYPTION



Any help or thoughts you could give would be much appreciated!

Thanks,
-Matt Kayala

mkayala <at> ics.uci.edu // matt.kayala <at> gmail.com
PhD Student
Institute for Genomics and Bioinformatics
School of Information and Computer Sciences
University of California, Irvine
[Message part 2 (text/html, inline)]

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4077; Package emacs. (Sun, 09 Aug 2009 23:45:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 09 Aug 2009 23:45:04 GMT) Full text and rfc822 format available.

Message #10 received at 4077 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Matt Kayala <matt.kayala <at> gmail.com>
Cc: 4077 <at> debbugs.gnu.org
Subject: Re: Decrypting a file with EasyPG
Date: Sun, 09 Aug 2009 19:36:51 -0400
merge 3829 4077
thanks

> Using Emacs 23, built with NS on Mac OS 10.4..., and gpg built from
> fink, I am having the following issue:
>
> I can create a new buffer 'test.gpg', edit it, and save it, which
> encrypts the file using one of my keys.
>
> If I close the buffer, then try to open the file, (C-x C-f), I am
> asked for my passphrase, then I get the following error in the
> minibuffer: 'File exists, but cannot be read'.  This is not a
> permissions issue (775).  Also, decrypting from the command line with
> gpg works fine.
>
> Here are the messages in *Messages*:
> /Users/mkayala/org/t: 0% (0/607)
> File exists, but cannot be read

See Bug#3829:

  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3829



Forcibly Merged 3829 4077. Request was from Juanma Barranquero <lekktu <at> gmail.com> to control <at> emacsbugs.donarmstrong.com. (Thu, 22 Oct 2009 10:00:05 GMT) Full text and rfc822 format available.

Forcibly Merged 3829 4077 8129. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Mon, 11 Jul 2016 03:02:02 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 04 Aug 2020 19:45:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 3829 <at> debbugs.gnu.org and Андрей Парамонов <cmr.pent <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 04 Aug 2020 19:45:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 02 Sep 2020 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 237 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.