all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem with EasyPG and gpg.conf
@ 2011-01-31  9:42 Ian Barton
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Barton @ 2011-01-31  9:42 UTC (permalink / raw)
  To: help-gnu-emacs

I would like to be able to use gnupg-agent with EasyPG. However, I am 
having some problems. First I am using GNU Emacs 23.2.1 
(x86_64-pc-linux-gnu, GTK+ Version 2.21.6) of 2010-09-01 on americium, 
modified by Debian.

In my .emacs I have:


(require 'epa)
(epa-file-enable)
(setq epg-gpg-program "/usr/bin/gpg"))

I am using EasyPG to encrypt/decrypt an org mode file. This works as 
expected. However, as soon as I change any of the options in my gpg.conf 
file (the default has everything commented out) I get a "File exists, 
but cannot be read" error. When this happens and I do M-x epa-list-keys, 
no keys are listed. If I comment out everything in gpg.conf M-x 
epa-list-keys shows my list of keys.

Ian.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem with EasyPG and gpg.conf
       [not found] <mailman.14.1296491149.11110.help-gnu-emacs@gnu.org>
@ 2011-01-31 16:37 ` Richard Riley
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Riley @ 2011-01-31 16:37 UTC (permalink / raw)
  To: help-gnu-emacs

Ian Barton <lists@manor-farm.org> writes:

> I would like to be able to use gnupg-agent with EasyPG. However, I am having
> some problems. First I am using GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+
> Version 2.21.6) of 2010-09-01 on americium, modified by Debian.
>
> In my .emacs I have:
>
> (require 'epa)
> (epa-file-enable)
> (setq epg-gpg-program "/usr/bin/gpg"))
>
> I am using EasyPG to encrypt/decrypt an org mode file. This works as
> expected. However, as soon as I change any of the options in my gpg.conf file
> (the default has everything commented out) I get a "File exists, but cannot be
> read" error. When this happens and I do M-x epa-list-keys, no keys are
> listed. If I comment out everything in gpg.conf M-x 
> epa-list-keys shows my list of keys.
>
> Ian.

Just fyi, I use gpg agent with Debian squeeze with no issues. I run
keychain in my .bash_env.

I just checked and I dont even manually load epa. Possibly gnus loads it
for me - so I have none of those lines above.

My emacs init for gpg is simply

,----
|   (defun rgr-security(frame)
|      (require 'rgr-misc "rgr-misc.gpg"))
|
|   (add-hook 'after-make-frame-functions 'rgr-security)
`----

my  gpg-agent.conf

,----
| 
| pinentry-program /usr/bin/pinentry-gtk-2
| no-grab
| default-cache-ttl       3942000
| max-cache-ttl           3942000
`----


best of luck!



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-31 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-31  9:42 Problem with EasyPG and gpg.conf Ian Barton
     [not found] <mailman.14.1296491149.11110.help-gnu-emacs@gnu.org>
2011-01-31 16:37 ` Richard Riley

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.