* bug#4077: Decrypting a file with EasyPG
@ 2009-08-09 23:36 Chong Yidong
0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2009-08-09 23:36 UTC (permalink / raw)
To: Matt Kayala; +Cc: 4077
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://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3829
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#4077: Decrypting a file with EasyPG
@ 2009-08-07 20:17 Matt Kayala
0 siblings, 0 replies; 2+ messages in thread
From: Matt Kayala @ 2009-08-07 20:17 UTC (permalink / raw)
To: bug-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 3385 bytes --]
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@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@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@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@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@ics.uci.edu // matt.kayala@gmail.com
PhD Student
Institute for Genomics and Bioinformatics
School of Information and Computer Sciences
University of California, Irvine
[-- Attachment #2: Type: text/html, Size: 4067 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-09 23:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-09 23:36 bug#4077: Decrypting a file with EasyPG Chong Yidong
-- strict thread matches above, loose matches on Subject: below --
2009-08-07 20:17 Matt Kayala
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.