gnupg cryptocard and cardman4040
Bjoern Schiessle
schiessle at fsfe.org
Sun Feb 12 23:33:22 CET 2006
Hello,
i have some problems with my gnupg cryptocard and pcmcia cardman4040.
Currently i'm using gnupg 1.4.2, but patched with the new driver for my
pcmcia card[0]. So i think the gnupg version should be ok for my needs.
If i try to decrypt a file without inserting the cryptocard i get a
message to insert the card. But after i have insert the card and proceed
i got this message:
$ gpg -d foo.gpg
gpg: anonymous recipient; trying secret key BD609BA5 ...
gpg: apdu_send_simple(0) failed: no card
Please insert the card and hit return or enter 'c' to cancel:
gpg: pcsc_connect failed: unknown reader (0x80100009)
gpg: card reader not available
*** glibc detected *** corrupted double-linked list: 0xb7e9b938 ***
Aborted
$
As far as i know this occurs because pcscd is running. So i have stopped
the service and tried it again. Without pcsd i get this message after i
have insert the card:
$ gpg -d foo.gpg
gpg: anonymous recipient; trying secret key BD609BA5 ...
gpg: apdu_send_simple(0) failed: no card
Please insert the card and hit return or enter 'c' to cancel:
gpg: pcsc_establish_context failed: no service (0x8010001d)
gpg: card reader not available
gpg: anonymous recipient; trying secret key CDBCD48F ...
gpg: pcsc_establish_context failed: no service (0x8010001d)
gpg: card reader not available
gpg: anonymous recipient; trying secret key C6109924 ...
gpg: pcsc_establish_context failed: no service (0x8010001d)
gpg: card reader not available
gpg: encrypted with ELG-E key, ID 00000000
gpg: encrypted with RSA key, ID 00000000
gpg: decryption failed: secret key not available
$
Everything stops before i get a chance to insert the PIN.
If i insert the card before trying to encrypt the file i can insert at
least my PIN but also than i can't decrypt the file:
$ gpg -d kernel2.6.15.cardreader.gpg
gpg: anonymous recipient; trying secret key BD609BA5 ...
gpg: anonymous recipient; trying secret key CDBCD48F ...
gpg: anonymous recipient; trying secret key C6109924 ...
PIN
gpg: okay, we are the anonymous recipient.
gpg: encrypted with ELG-E key, ID 00000000
gpg: encrypted with RSA key, ID 00000000
Feb 11 21:23:12 localhost udevd[1028]: udevd.c: udevd event message
received
Feb 11 21:23:12 localhost udevd[1028]: udevd.c: seq 1011 queued, devpath
'/devices/pci0000:00/0000:00:1e.0/0000:02:00.1/1.0'
Feb 11 21:23:12 localhost udevd[1028]: udevd.c: seq 1011 forked, pid
4699, 0 seconds old
Feb 11 21:23:12 localhost cardmgr[4036]: unsupported card in socket 1
Feb 11 21:23:12 localhost udevd[1028]: udevd.c: seq 1011 exit, 0 seconds
old
Feb 11 21:23:12 localhost cardmgr[4036]: product info: "OMNIKEY",
"CardMan 4040"
Feb 11 21:23:12 localhost cardmgr[4036]: manfid: 0x0223, 0x0200
$
What's going wrong? Any hints?
Thanks!
Bjoern
[0] https://www.fsfe.org/en/fellows/greve/files/gnupg_1_4_2_4_i386_deb
More information about the Gnupg-users
mailing list