problems getting gpg-agent to work (Werner Koch)

Murray Smigel murray@smigel.org
Wed Sep 17 15:47:01 2003


=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>
>
> On Sun, 14 Sep 2003 21:20:20 -0400, Murray Smigel said:
> > I have built the various  modules for gpg/mime under kmail as described
> > in http://kmail.kde.org/kmail-pgpmime-howto.html, although I had to
> > remove gnu pth to get gpg-agent to run with out a seg fault. When I try
> > the gpg-agent
>
> There is something definitely wrong if it segv when running with Pth
> support.
>
> > gpg-agent[24019]: DBG: connection to PIN entry established
> > gpg-agent[24019]: command get_passphrase failed: ec=3D-1
>
> There is something wron.  What pinentry are you using, did you
> specify the name of the pinentry in gpg-agent.conf ?
>
**
=2Egnupg/gpg-agent.conf -->
pinentry-program /usr/local/bin/pinentry-qt
no-grab
default-cache-ttl 1800

If I just run pinentry-qt itself:
spud:~/.gnupg>pinentry-qt
Warning: using insecure memory!
[0x408b902c] -> OK Your orders please
OK Your orders please

> > In anycase, when I try using the crypto plugin in kmail, it refuses to
> > sign mail, giving the error "#19 no pass phase" message. If I remove the
> > line
>
> The pinentry is required to supply gpg with a passphrase without
> having kmail involved.  kmail does not know and needs not to know
> whether a passphrase is required.
>
> Did you run the gpg-agent in the background as described in the
> manual? =20
**
Yes.

> Is the GPG_AGENT_INFO environment variable set?=20
 ps ax | grep gpg-agent
 1885 ?        S      0:00 gpg-agent --daemon
 2360 pts/10   S      0:00 grep gpg-agent

spud:~>env | grep GPG
GPG_AGENT_INFO=3D/tmp/gpg-AB001C/S.gpg-agent:1885:1

> I guess both
> is correct. Note, that using gpg with kmail requires that the
> gpg-agent is already in the background, whereas gpgsm (for S/MIME) has
> a fallback mode where this is not required.    What are the software
> versions you are using?  newpg? gnupg?  libgrypt? pinentry?
**
newpg-0.9.4
gpg (GnuPG) 1.2.2
libgcrypt-1.1.12 (libgcrypt-1.1.43 does not work in the build)
pinentry-0.6.8
cryptplug-0.3.16
gpgme-0.3.15
libgpg-error-0.4 (was needed for build)
libksba-0.4.7

kmail 1.5.9.1i (Using KDE 3.1.3)

Thanks for your help,
murray smigel

=2D --=20
use http://pgp.mit.edu/
with id 0x4176EECA to find my public key=20
or search on murray@smigel.org

=2D -----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GE/S/CS d-- s:+ a++ C++(++++) UL*++ P-- L++ E W+(+++) N o-- K- w O- M-=20
V-- PS++ PE- Y+ PGP++ t+ 5- X- R tv-- b++++ DI++ D- G e++++ y++
=2D ------END GEEK CODE BLOCK------
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/aGZSx8lQe0F27soRAuj3AJ9BXAe31SEn+nNsLgy9pPKEdRSbNgCgkxsF
Gjg/ARLkKsy9oB49tdGM09Y=3D
=3DH2K1
=2D----END PGP SIGNATURE-----