[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with EasyPG and gpg.conf
From: |
Richard Riley |
Subject: |
Re: Problem with EasyPG and gpg.conf |
Date: |
Mon, 31 Jan 2011 17:37:20 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
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!