pinentry doesn't work with gpg-agent
Katsumi Yamaoka
yamaoka at jpl.org
Fri Nov 17 06:56:41 CET 2006
Hi,
I started using GnuPG 2.0.0. That works great except one thing.
echo test.|gpg2 --clearsign|gpg2 --verify
This test passes if I don't run gpg-agent or I unset GPG_AGENT_INFO
as follows:
GPG_AGENT_INFO='' echo test.|gpg2 --clearsign|gpg2 --verify
At that time pinentry prompts me for a passphrase, and echoes an
asterisk in the window every time I enter a letter. However, if
I run gpg-agent, pinentry appears but I cannot enter a passphrase.
It echoes no asterisk in the window whatever I type a letter, and
then signing fails. Does anyone know what I overlooked?
I installed the following packages by performing ``./configure;
make; make install'' in the Fedora Core 6 Linux system, which
runs the metacity window manager.
ftp://ftp.gnu.org/gnu/pth/pth-2.0.7.tar.gz
ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-1.0.0.tar.bz2
ftp://ftp.gnupg.org/gcrypt/libksba/libksba-1.0.0.tar.bz2
ftp://ftp.gnupg.org/gcrypt/pinentry/pinentry-0.7.2.tar.gz
ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-2.0.0.tar.bz2
pinentry is a symlink to pinentry-gtk-2.
The way to run gpg-agent is to put the following snipet in the
~/.Xclients file.
--8<---------------cut here---------------start------------->8---
if test -z `ps x | grep gpg-agent|grep -v grep`; then
gpg-agent --daemon --write-env-file
fi
. $HOME/.gpg-agent-info; export GPG_AGENT_INFO
--8<---------------cut here---------------end--------------->8---
Thanks in advance.
More information about the Gnupg-users
mailing list