[Enigmail] Problems signing message (gpg-agent related?)

James Davis james at freecharity.org.uk
Tue Jul 17 04:03:49 PDT 2007


Sorry for the verboseness of this post...

I'm using Icedove 1.5.0.12, Enigmail 0.94.3 and gnupg 1.4.6 on Debian
4.0, I also have gnupg 2 available. I'm using a smartcard with an SCR335
reader through the internal CCID driver. I think my problem relates to
gpg-agent as I'd recently been tweaking the configuration but I can't
figure out how this is resulting in what I see.

When I try to sign a message with enigmail I get the following error
(from log directory)

[GNUPG:] BEGIN_SIGNING
winscard_clnt.c:3232:SCardCheckDaemonAvailability() PCSC Not Running
gpg: pcsc_establish_context failed: no service (0x8010001d)
[GNUPG:] CARDCTRL 5
gpg: card reader not available
gpg: signing failed: general error
gpg: [stdin]: clearsign failed: general error

The gpg command enigmail ran was

/usr/bin/gpg --charset utf8  --batch --no-tty --status-fd 2 --comment
'Using GnuPG with Mozilla - http://enigmail.mozdev.org' --digest-algo
sha1 -t --clearsign -u 0x890F159E --passphrase-fd 0 --no-use-agent

The following command fails

$ echo "Hello world" | gpg --charset utf8  --batch --no-tty --status-fd
2 --comment 'Using GnuPG with Mozilla - http://enigmail.mozdev.org'
--digest-algo sha1 -t --clearsign -u 0x890F159E --passphrase-fd 0
--no-use-agent
[GNUPG:] BEGIN_SIGNING
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


winscard_clnt.c:3232:SCardCheckDaemonAvailability() PCSC Not Running
gpg: pcsc_establish_context failed: no service (0x8010001d)
[GNUPG:] CARDCTRL 5
gpg: card reader not available
gpg: signing failed: general error
gpg: [stdin]: clearsign failed: general error

but the command succeeds when I remove "--passphrase-fd 0
--no-use-agent" from the command.

james at cressida:~/enigmail$ echo "Hello world" | gpg --charset utf8
--batch --no-tty --status-fd 2 --comment 'Using GnuPG with Mozilla -
http://enigmail.mozdev.org' --digest-algo sha1 -t --clearsign -u 0x890F159E
[GNUPG:] BEGIN_SIGNING
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello world
[GNUPG:] CARDCTRL 3
[GNUPG:] SIG_CREATED C 1 2 01 1184670059
33FD5839ED6475E4E5D02273B6BDDBA7890F159E
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRpyha7a926eJDxWeAQJTIwP9FqWNL2Cf9fJ5LLaGg34lkbwp4VMnmtSi
zYRlaJOeKax3tXq20BWJF+PcHc7Hssv/CiV+ueAuLgwx+byBTiTWShx+bqI/19RN
bEN3RCSdII4qKTzHIa8wr9jU9hx8kzOcgEXdgdk64zjs9VVni5TbxpAA8ODdGJMc
/5X0dwtST1E=
=5dwa
-----END PGP SIGNATURE-----

Any ideas?

James

-- 
http://www.freecharity.org.uk/ - Free IT services for charities
http://www.freecharity.org.uk/wiki/ - The VCSWiki


More information about the Enigmail mailing list