Can't read belgium eID card using gpgsm

Luc Willems willems.luc at pandora.be
Wed Sep 6 21:06:20 CEST 2006


On Wednesday 06 September 2006 11:07, Werner Koch wrote:
> On Sat,  2 Sep 2006 20:38, Luc Willems said:
> > It works fine with my browser (some government sites use the new card) ,
> > the linux tools provided by the government  , i can use the pkcs15 tools
> > from opensc to read the card but gpgsm cant read the card :-(
>
> I have two developers card here and they really work fine.
>
> > luc at lieve:~> scdaemon --server
> > scdaemon[6024]: NOTE: this is a development version!
> > scdaemon[6024]: DBG: failed to open `/dev/cmx0': No such file or
> > directory scdaemon[6024]: DBG: failed to open `/dev/cmx1': No such file
> > or directory OK GNU Privacy Guard's Smartcard server ready
> > scdaemon[6024]: updating status of slot 0 to 0x0007
> >
> > RESET
> > OK
> > LEARN
> > scdaemon[6024]: pcsc_transmit failed: not transacted (0x80100016)
>
> That is a driver problem.  Please run
>
> scdaemon --server --debug-ccid-driver
>
> and make sure that no other scdaemon is runing.  You also need to sto
> pcscd.  Then enter
>
> LEARN --force
>
> and watch the output.
>

hello werner ,

I tried your suggestion and it didn't help. My card reader is a ACR38 USB 
Reader .

I noticed that when is stop the pcscd , the active led keep flashing the same 
way as when there is no card inserted.

When is run without pcscd i get follow loggin :

scdaemon -v --server --debug-ccid-drive --debug-all --log-file ~/sc.log    

2006-09-06 20:54:13 scdaemon[23241] handler for fd -1 started
2006-09-06 20:54:13 scdaemon[23241] PC/SC OPEN failed: no service
scdaemon[23241.0x8094f88] DBG: -> OK GNU Privacy Guard's Smartcard server 
ready
scdaemon[23241.0x8094f88] DBG: <- LEARN --force
2006-09-06 20:54:17 scdaemon[23241] PC/SC OPEN failed: no service
scdaemon[23241.0x8094f88] DBG: -> ERR 100663404 Card error <SCD>
2006-09-06 20:54:19 scdaemon[23241] SIGINT received - immediate shutdown
2006-09-06 20:54:19 scdaemon[23241] scdaemon (GnuPG) 1.9.19 stopped
 no service
scdaemon[23241.0x8094f88] DBG: -> ERR 100663404 Card error <SCD>
2006-09-06 20:54:19 scdaemon[23241] SIGINT received - immediate shutdown
2006-09-06 20:54:19 scdaemon[23241] scdaemon (GnuPG) 1.9.19 stopped

I have the impression that the internal ccid driver is not recognising my USB 
card reader ( idVendor=072f, idProduct=9000 )
when i do the same with pcscd running  , i get

2006-09-06 20:57:32 scdaemon[23314] handler for fd -1 started
2006-09-06 20:57:32 scdaemon[23314] reader slot 0: active protocol:
2006-09-06 20:57:32 scdaemon[23314] slot 0: ATR=3B 98 13 40 0A A5 03 01 01 01 
AD 13 11
scdaemon[23314.0x8094f88] DBG: -> OK GNU Privacy Guard's Smartcard server 
ready
2006-09-06 20:57:34 scdaemon[23314] updating status of slot 0 to 0x0007
scdaemon[23314.0x8094f88] DBG: <- LEARN --force
2006-09-06 20:57:37 scdaemon[23314] pcsc_transmit failed: not transacted 
(0x80100016)
2006-09-06 20:57:37 scdaemon[23314] apdu_send_simple(0) failed: general error
2006-09-06 20:57:38 scdaemon[23314] pcsc_transmit failed: not transacted 
(0x80100016)
2006-09-06 20:57:38 scdaemon[23314] apdu_send_simple(0) failed: general error
2006-09-06 20:57:39 scdaemon[23314] pcsc_transmit failed: not transacted 
(0x80100016)
2006-09-06 20:57:39 scdaemon[23314] apdu_send_simple(0) failed: general error
2006-09-06 20:57:39 scdaemon[23314] no supported card application found: Card 
error
scdaemon[23314.0x8094f88] DBG: -> ERR 100663404 Card error <SCD>
2006-09-06 20:57:43 scdaemon[23314] SIGINT received - immediate shutdown
2006-09-06 20:57:43 scdaemon[23314] scdaemon (GnuPG) 1.9.19 stopped

when i execute the LEARN command , i see some activity on the reader but this 
ends with this failure. you can see this in the logging where the error 
appears around 3 seconds after the learn command

Is it possible to use gpg2sm with the pcscd stack for reading the card ?
 
	luc



More information about the Gnupg-users mailing list