Problem with Gemplus GemXpresso Pro R3 E32 PK

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with Gemplus GemXpresso Pro R3 E32 PK

Marcelo Grassi Franco Melgaço
Hello,
I have a Brazilian e-cnpj certisign certificate.
The card is a Gemplus GemXpresso Pro R3 E32 PK.
I'm trying to get this work in linux, but i'm having some errors.
It works on windows.
Can anyone help me?
If you need aditional commands just ask me.

Thanks a lot !

Here is the output of the command:

# pkcs15-tool --list-certificates -vvvv

0x7f9422606720 13:39:54.725 [pkcs15-tool] sc.c:195:sc_detect_card_presence: called
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:364:pcsc_detect_card_presence: called
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:277:refresh_attributes: ACS ACR 38U-CCID 00 00 check
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:293:refresh_attributes: returning with: 0 (Success)
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:369:pcsc_detect_card_presence: returning with: 1
0x7f9422606720 13:39:54.725 [pkcs15-tool] sc.c:200:sc_detect_card_presence: returning with: 1
Using reader with a card: ACS ACR 38U-CCID 00 00
0x7f9422606720 13:39:54.725 [pkcs15-tool] sc.c:195:sc_detect_card_presence: called
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:364:pcsc_detect_card_presence: called
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:277:refresh_attributes: ACS ACR 38U-CCID 00 00 check
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:293:refresh_attributes: returning with: 0 (Success)
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:369:pcsc_detect_card_presence: returning with: 1
0x7f9422606720 13:39:54.725 [pkcs15-tool] sc.c:200:sc_detect_card_presence: returning with: 1
Connecting to card in reader ACS ACR 38U-CCID 00 00...
0x7f9422606720 13:39:54.725 [pkcs15-tool] card.c:115:sc_connect_card: called
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:444:pcsc_connect: called
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:277:refresh_attributes: ACS ACR 38U-CCID 00 00 check
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:293:refresh_attributes: returning with: 0 (Success)
0x7f9422606720 13:39:54.728 [pkcs15-tool] reader-pcsc.c:473:pcsc_connect: Initial protocol: T=0
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:6e:00:ff:45:73:74:45:49:44:20:76:65:72:20:31:2e:30
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fe:94:00:ff:80:b1:fa:45:1f:03:45:73:74:45:49:44:20:76:65:72:20:31:2e:30:43
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:5e:11:ff:45:73:74:45:49:44:20:76:65:72:20:31:2e:30
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:de:18:ff:c0:80:b1:fe:45:1f:03:45:73:74:45:49:44:20:76:65:72:20:31:2e:30:2b
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:6e:00:00:45:73:74:45:49:44:20:76:65:72:20:31:2e:30
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fe:18:00:00:80:31:fe:45:45:73:74:45:49:44:20:76:65:72:20:31:2e:30:a8
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fe:18:00:00:80:31:fe:45:80:31:80:66:40:90:a4:56:1b:16:83:01:90:00:86
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fe:18:00:00:80:31:fe:45:80:31:80:66:40:90:a4:16:2a:00:83:01:90:00:e1
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fe:18:00:00:80:31:fe:45:80:31:80:66:40:90:a4:16:2a:00:83:0f:90:00:ef
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:ff:94:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:23
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:ff:11:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:a6
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:e2:00:ff:c1:10:31:fe:55:c8:02:9c
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:e9:00:ff:c1:10:31:fe:55:00:64:05:00:c8:02:31:80:00:47
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fb:98:00:ff:c1:10:31:fe:55:00:64:05:20:47:03:31:80:00:90:00:f3
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fc:98:00:ff:c1:10:31:fe:55:c8:03:49:6e:66:6f:63:61:6d:65:72:65:28
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:f4:98:00:ff:c1:10:31:fe:55:4d:34:63:76:b4
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:f2:18:00:ff:c1:0a:31:fe:55:c8:06:8a
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:d2:18:02:c1:0a:31:fe:58:c8:0d:51
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:95:15:40:20:68:01:02:00:00
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:01
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:04
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:85:40:20:68:01:01:05:01
0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:94:40:FF:63:01:01:02:01
0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:63:01:01:02:01
0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:64:02:01:01:02
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:01:00:00
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:02:01:04
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:04:01:01:05
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:95:15:40:ff:68:01:02:45:47
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:06
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:05
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:07
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:85:40:20:68:01:01:03:05
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:02:14:50
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:55:90:01:02:01:00:05:04:B0
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:32:15:00:06:80
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:32:15:00:06:95
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:59:01:01:0F:01:00:05:08:B0
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:55:90:01:01:01:00:05:08:B0
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:3F
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:2F
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:95:15:40:20:68:01:02:00:00
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:01
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:04
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:85:40:20:68:01:01:05:01
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:94:40:FF:63:01:01:02:01
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:63:01:01:02:01
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:64:02:01:01:02
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:01:00:00
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:02:01:04
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:04:01:01:05
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:95:15:40:ff:68:01:02:45:47
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:06
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:05
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:07
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:85:40:20:68:01:01:03:05
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:02:14:50
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:55:90:01:02:01:00:05:04:B0
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:32:15:00:06:80
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:32:15:00:06:95
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:59:01:01:0F:01:00:05:08:B0
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:55:90:01:01:01:00:05:08:B0
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:3F
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:2F
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:27:00:80:65:A2:04:01:01:37
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:27:00:80:65:A2:05:01:01:37
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:27:00:80:65:A2:0C:01:01:37
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:A7:00:40:14:80:65:A2:14:01:01:37
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:08:01:01:52
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:09:01:01:52
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:09:01:02:52
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:09:01:03:52
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:7B:94:00:00:80:65:B0:83:01:01:74:83:00:90:00
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:6B:00:00:80:65:B0:83:01:01:74:83:00:90:00
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:6d:00:00:80:31:80:65:b0:83:01:02:90:83:00:90:00
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:6B:00:00:80:65:B0:83:01:03:74:83:00:90:00
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:7A:94:00:00:80:65:A2:01:01:01:3D:72:D6:43
0x7f9422606720 13:39:54.753 [pkcs15-tool] card-gemsafeV1.c:147:gemsafe_init: called
0x7f9422606720 13:39:54.753 [pkcs15-tool] card-gemsafeV1.c:81:get_conf_aid: called
0x7f9422606720 13:39:54.753 [pkcs15-tool] card-gemsafeV1.c:93:get_conf_aid: no card specific options configured, trying default AID
0x7f9422606720 13:39:54.753 [pkcs15-tool] card-gemsafeV1.c:112:gp_select_applet: called
0x7f9422606720 13:39:54.753 [pkcs15-tool] apdu.c:525:sc_transmit_apdu: called
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:292:sc_lock: called
0x7f9422606720 13:39:54.753 [pkcs15-tool] reader-pcsc.c:243:pcsc_transmit: reader 'ACS ACR 38U-CCID 00 00'
0x7f9422606720 13:39:54.753 [pkcs15-tool] apdu.c:184:sc_apdu_log:
Outgoing APDU data [   17 bytes] =====================================
00 A4 04 00 0C A0 00 00 00 18 0A 00 00 01 63 42 ..............cB
00                                              .
======================================================================
0x7f9422606720 13:39:54.753 [pkcs15-tool] reader-pcsc.c:176:pcsc_internal_transmit: called
0x7f9422606720 13:39:54.765 [pkcs15-tool] apdu.c:184:sc_apdu_log:
Incoming APDU data [    2 bytes] =====================================
6A 82 j.
======================================================================
0x7f9422606720 13:39:54.765 [pkcs15-tool] card.c:330:sc_unlock: called
0x7f9422606720 13:39:54.765 [pkcs15-tool] iso7816.c:103:iso7816_check_sw: File not found
0x7f9422606720 13:39:54.765 [pkcs15-tool] card-gemsafeV1.c:126:gp_select_applet: returning with: -1201 (File not found)
0x7f9422606720 13:39:54.765 [pkcs15-tool] card-gemsafeV1.c:176:gemsafe_init: applet selection failed
0x7f9422606720 13:39:54.765 [pkcs15-tool] reader-pcsc.c:498:pcsc_disconnect: called
0x7f9422606720 13:39:55.585 [pkcs15-tool] card.c:231:sc_connect_card: returning with: -1400 (Internal error)
Failed to connect to card: Internal error
0x7f9422606720 13:39:55.585 [pkcs15-tool] ctx.c:737:sc_release_context: called
0x7f9422606720 13:39:55.585 [pkcs15-tool] reader-pcsc.c:736:pcsc_finish: called

_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Gemplus GemXpresso Pro R3 E32 PK

Marcelo Grassi Franco Melgaço
Anyone ?

Em 15 de agosto de 2011 17:23, Marcelo Grassi F. Melgaço <[hidden email]> escreveu:
Hello,
I have a Brazilian e-cnpj certisign certificate.
The card is a Gemplus GemXpresso Pro R3 E32 PK.
I'm trying to get this work in linux, but i'm having some errors.
It works on windows.
Can anyone help me?
If you need aditional commands just ask me.

Thanks a lot !

Here is the output of the command:

# pkcs15-tool --list-certificates -vvvv

0x7f9422606720 13:39:54.725 [pkcs15-tool] sc.c:195:sc_detect_card_presence: called
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:364:pcsc_detect_card_presence: called
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:277:refresh_attributes: ACS ACR 38U-CCID 00 00 check
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:293:refresh_attributes: returning with: 0 (Success)
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:369:pcsc_detect_card_presence: returning with: 1
0x7f9422606720 13:39:54.725 [pkcs15-tool] sc.c:200:sc_detect_card_presence: returning with: 1
Using reader with a card: ACS ACR 38U-CCID 00 00
0x7f9422606720 13:39:54.725 [pkcs15-tool] sc.c:195:sc_detect_card_presence: called
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:364:pcsc_detect_card_presence: called
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:277:refresh_attributes: ACS ACR 38U-CCID 00 00 check
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:293:refresh_attributes: returning with: 0 (Success)
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:369:pcsc_detect_card_presence: returning with: 1
0x7f9422606720 13:39:54.725 [pkcs15-tool] sc.c:200:sc_detect_card_presence: returning with: 1
Connecting to card in reader ACS ACR 38U-CCID 00 00...
0x7f9422606720 13:39:54.725 [pkcs15-tool] card.c:115:sc_connect_card: called
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:444:pcsc_connect: called
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:277:refresh_attributes: ACS ACR 38U-CCID 00 00 check
0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:293:refresh_attributes: returning with: 0 (Success)
0x7f9422606720 13:39:54.728 [pkcs15-tool] reader-pcsc.c:473:pcsc_connect: Initial protocol: T=0
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:6e:00:ff:45:73:74:45:49:44:20:76:65:72:20:31:2e:30
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fe:94:00:ff:80:b1:fa:45:1f:03:45:73:74:45:49:44:20:76:65:72:20:31:2e:30:43
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:5e:11:ff:45:73:74:45:49:44:20:76:65:72:20:31:2e:30
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:de:18:ff:c0:80:b1:fe:45:1f:03:45:73:74:45:49:44:20:76:65:72:20:31:2e:30:2b
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:6e:00:00:45:73:74:45:49:44:20:76:65:72:20:31:2e:30
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fe:18:00:00:80:31:fe:45:45:73:74:45:49:44:20:76:65:72:20:31:2e:30:a8
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fe:18:00:00:80:31:fe:45:80:31:80:66:40:90:a4:56:1b:16:83:01:90:00:86
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fe:18:00:00:80:31:fe:45:80:31:80:66:40:90:a4:16:2a:00:83:01:90:00:e1
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fe:18:00:00:80:31:fe:45:80:31:80:66:40:90:a4:16:2a:00:83:0f:90:00:ef
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:ff:94:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:23
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:ff:11:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:a6
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:e2:00:ff:c1:10:31:fe:55:c8:02:9c
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:e9:00:ff:c1:10:31:fe:55:00:64:05:00:c8:02:31:80:00:47
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fb:98:00:ff:c1:10:31:fe:55:00:64:05:20:47:03:31:80:00:90:00:f3
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fc:98:00:ff:c1:10:31:fe:55:c8:03:49:6e:66:6f:63:61:6d:65:72:65:28
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:f4:98:00:ff:c1:10:31:fe:55:4d:34:63:76:b4
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:f2:18:00:ff:c1:0a:31:fe:55:c8:06:8a
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:d2:18:02:c1:0a:31:fe:58:c8:0d:51
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:95:15:40:20:68:01:02:00:00
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:01
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:04
0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:85:40:20:68:01:01:05:01
0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:94:40:FF:63:01:01:02:01
0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:63:01:01:02:01
0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:64:02:01:01:02
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:01:00:00
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:02:01:04
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:04:01:01:05
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:95:15:40:ff:68:01:02:45:47
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:06
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:05
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:07
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:85:40:20:68:01:01:03:05
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:02:14:50
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:55:90:01:02:01:00:05:04:B0
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:32:15:00:06:80
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:32:15:00:06:95
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:59:01:01:0F:01:00:05:08:B0
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:55:90:01:01:01:00:05:08:B0
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:3F
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:2F
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:95:15:40:20:68:01:02:00:00
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:01
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:04
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:85:40:20:68:01:01:05:01
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:94:40:FF:63:01:01:02:01
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:63:01:01:02:01
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:64:02:01:01:02
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:01:00:00
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:02:01:04
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:04:01:01:05
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:95:15:40:ff:68:01:02:45:47
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:06
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:05
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:07
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:85:40:20:68:01:01:03:05
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:02:14:50
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:55:90:01:02:01:00:05:04:B0
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:32:15:00:06:80
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:32:15:00:06:95
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:59:01:01:0F:01:00:05:08:B0
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:55:90:01:01:01:00:05:08:B0
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:3F
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:2F
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:27:00:80:65:A2:04:01:01:37
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:27:00:80:65:A2:05:01:01:37
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:27:00:80:65:A2:0C:01:01:37
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:A7:00:40:14:80:65:A2:14:01:01:37
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:08:01:01:52
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:09:01:01:52
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:09:01:02:52
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:09:01:03:52
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:7B:94:00:00:80:65:B0:83:01:01:74:83:00:90:00
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:6B:00:00:80:65:B0:83:01:01:74:83:00:90:00
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:6d:00:00:80:31:80:65:b0:83:01:02:90:83:00:90:00
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:6B:00:00:80:65:B0:83:01:03:74:83:00:90:00
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:7A:94:00:00:80:65:A2:01:01:01:3D:72:D6:43
0x7f9422606720 13:39:54.753 [pkcs15-tool] card-gemsafeV1.c:147:gemsafe_init: called
0x7f9422606720 13:39:54.753 [pkcs15-tool] card-gemsafeV1.c:81:get_conf_aid: called
0x7f9422606720 13:39:54.753 [pkcs15-tool] card-gemsafeV1.c:93:get_conf_aid: no card specific options configured, trying default AID
0x7f9422606720 13:39:54.753 [pkcs15-tool] card-gemsafeV1.c:112:gp_select_applet: called
0x7f9422606720 13:39:54.753 [pkcs15-tool] apdu.c:525:sc_transmit_apdu: called
0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:292:sc_lock: called
0x7f9422606720 13:39:54.753 [pkcs15-tool] reader-pcsc.c:243:pcsc_transmit: reader 'ACS ACR 38U-CCID 00 00'
0x7f9422606720 13:39:54.753 [pkcs15-tool] apdu.c:184:sc_apdu_log:
Outgoing APDU data [   17 bytes] =====================================
00 A4 04 00 0C A0 00 00 00 18 0A 00 00 01 63 42 ..............cB
00                                              .
======================================================================
0x7f9422606720 13:39:54.753 [pkcs15-tool] reader-pcsc.c:176:pcsc_internal_transmit: called
0x7f9422606720 13:39:54.765 [pkcs15-tool] apdu.c:184:sc_apdu_log:
Incoming APDU data [    2 bytes] =====================================
6A 82 j.
======================================================================
0x7f9422606720 13:39:54.765 [pkcs15-tool] card.c:330:sc_unlock: called
0x7f9422606720 13:39:54.765 [pkcs15-tool] iso7816.c:103:iso7816_check_sw: File not found
0x7f9422606720 13:39:54.765 [pkcs15-tool] card-gemsafeV1.c:126:gp_select_applet: returning with: -1201 (File not found)
0x7f9422606720 13:39:54.765 [pkcs15-tool] card-gemsafeV1.c:176:gemsafe_init: applet selection failed
0x7f9422606720 13:39:54.765 [pkcs15-tool] reader-pcsc.c:498:pcsc_disconnect: called
0x7f9422606720 13:39:55.585 [pkcs15-tool] card.c:231:sc_connect_card: returning with: -1400 (Internal error)
Failed to connect to card: Internal error
0x7f9422606720 13:39:55.585 [pkcs15-tool] ctx.c:737:sc_release_context: called
0x7f9422606720 13:39:55.585 [pkcs15-tool] reader-pcsc.c:736:pcsc_finish: called


_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Gemplus GemXpresso Pro R3 E32 PK

Douglas E. Engert


On 8/17/2011 3:00 PM, Marcelo Grassi F. Melgaço wrote:
> Anyone ?
>
> Em 15 de agosto de 2011 17:23, Marcelo Grassi F. Melgaço <[hidden email] <mailto:[hidden email]>> escreveu:
>
>     Hello,
>     I have a Brazilian e-cnpj certisign certificate.
>     The card is a Gemplus GemXpresso Pro R3 E32 PK.
>     I'm trying to get this work in linux, but i'm having some errors.
>     It works on windows.

Are you using OpenSC on Windows, or the vendors windows drivers?


>     Can anyone help me?
>     If you need aditional commands just ask me.

It looks like the card-gemsafeV1.c is looking for an Application ID on the card,
and did not find it. So this may require additional code in the driver.
There was code added to support a Portuguese eID cards.

There is also code to search opensc.conf for a "card" "gemsafeV1" section
to get the aid (I am not sure what you would have to add.)


It looks like there is also a bug.

In card-gemsafeV1.c the card->lock_count is incremented,
but if the gp_select_applet fails, the count is not decremented,
which then causes in card.c in sc_disconnect_card
     assert(card->lock_count == 0);
to fail with a -1400 (Internal error)


diff --git a/src/libopensc/card-gemsafeV1.c b/src/libopensc/card-gemsafeV1.c
index 03c8ca3..8cc3a17 100644
--- a/src/libopensc/card-gemsafeV1.c
+++ b/src/libopensc/card-gemsafeV1.c
@@ -172,6 +172,7 @@ static int gemsafe_init(struct sc_card *card)
         /* SELECT applet */
         r = gp_select_applet(card, exdata->aid, exdata->aid_len);
         if (r < 0) {
+               card->lock_count--;
                 free(exdata);
                 sc_debug(card->ctx, SC_LOG_DEBUG_NORMAL, "applet selection failed\n");
                 return SC_ERROR_INTERNAL;


>
>     Thanks a lot !
>
>     Here is the output of the command:
>
>     # pkcs15-tool --list-certificates -vvvv
>
>     0x7f9422606720 13:39:54.725 [pkcs15-tool] sc.c:195:sc_detect_card_presence: called
>     0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:364:pcsc_detect_card_presence: called
>     0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:277:refresh_attributes: ACS ACR 38U-CCID 00 00 check
>     0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:293:refresh_attributes: returning with: 0 (Success)
>     0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:369:pcsc_detect_card_presence: returning with: 1
>     0x7f9422606720 13:39:54.725 [pkcs15-tool] sc.c:200:sc_detect_card_presence: returning with: 1
>     Using reader with a card: ACS ACR 38U-CCID 00 00
>     0x7f9422606720 13:39:54.725 [pkcs15-tool] sc.c:195:sc_detect_card_presence: called
>     0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:364:pcsc_detect_card_presence: called
>     0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:277:refresh_attributes: ACS ACR 38U-CCID 00 00 check
>     0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:293:refresh_attributes: returning with: 0 (Success)
>     0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:369:pcsc_detect_card_presence: returning with: 1
>     0x7f9422606720 13:39:54.725 [pkcs15-tool] sc.c:200:sc_detect_card_presence: returning with: 1
>     Connecting to card in reader ACS ACR 38U-CCID 00 00...
>     0x7f9422606720 13:39:54.725 [pkcs15-tool] card.c:115:sc_connect_card: called
>     0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:444:pcsc_connect: called
>     0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:277:refresh_attributes: ACS ACR 38U-CCID 00 00 check
>     0x7f9422606720 13:39:54.725 [pkcs15-tool] reader-pcsc.c:293:refresh_attributes: returning with: 0 (Success)
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] reader-pcsc.c:473:pcsc_connect: Initial protocol: T=0
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:6e:00:ff:45:73:74:45:49:44:20:76:65:72:20:31:2e:30
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fe:94:00:ff:80:b1:fa:45:1f:03:45:73:74:45:49:44:20:76:65:72:20:31:2e:30:43
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:5e:11:ff:45:73:74:45:49:44:20:76:65:72:20:31:2e:30
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:de:18:ff:c0:80:b1:fe:45:1f:03:45:73:74:45:49:44:20:76:65:72:20:31:2e:30:2b
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:6e:00:00:45:73:74:45:49:44:20:76:65:72:20:31:2e:30
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fe:18:00:00:80:31:fe:45:45:73:74:45:49:44:20:76:65:72:20:31:2e:30:a8
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fe:18:00:00:80:31:fe:45:80:31:80:66:40:90:a4:56:1b:16:83:01:90:00:86
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fe:18:00:00:80:31:fe:45:80:31:80:66:40:90:a4:16:2a:00:83:01:90:00:e1
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fe:18:00:00:80:31:fe:45:80:31:80:66:40:90:a4:16:2a:00:83:0f:90:00:ef
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:ff:94:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:23
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:ff:11:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:a6
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:e2:00:ff:c1:10:31:fe:55:c8:02:9c
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:e9:00:ff:c1:10:31:fe:55:00:64:05:00:c8:02:31:80:00:47
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fb:98:00:ff:c1:10:31:fe:55:00:64:05:20:47:03:31:80:00:90:00:f3
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:fc:98:00:ff:c1:10:31:fe:55:c8:03:49:6e:66:6f:63:61:6d:65:72:65:28
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:f4:98:00:ff:c1:10:31:fe:55:4d:34:63:76:b4
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:f2:18:00:ff:c1:0a:31:fe:55:c8:06:8a
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:d2:18:02:c1:0a:31:fe:58:c8:0d:51
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:95:15:40:20:68:01:02:00:00
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:01
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:04
>     0x7f9422606720 13:39:54.728 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:85:40:20:68:01:01:05:01
>     0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:94:40:FF:63:01:01:02:01
>     0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:63:01:01:02:01
>     0x7f9422606720 13:39:54.734 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:64:02:01:01:02
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:01:00:00
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:02:01:04
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:04:01:01:05
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:95:15:40:ff:68:01:02:45:47
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:06
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:05
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:07
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:85:40:20:68:01:01:03:05
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:02:14:50
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:55:90:01:02:01:00:05:04:B0
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:32:15:00:06:80
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:32:15:00:06:95
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:59:01:01:0F:01:00:05:08:B0
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:55:90:01:01:01:00:05:08:B0
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:3F
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:2F
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:95:15:40:20:68:01:02:00:00
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:01
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:04
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:85:40:20:68:01:01:05:01
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:94:40:FF:63:01:01:02:01
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:15:40:FF:63:01:01:02:01
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:64:02:01:01:02
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:01:00:00
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:02:01:04
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:95:18:40:FF:62:04:01:01:05
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.735 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:95:15:40:ff:68:01:02:45:47
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:06
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:05
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:07
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:85:40:20:68:01:01:03:05
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:02:14:50
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:55:90:01:02:01:00:05:04:B0
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:32:15:00:06:80
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:32:15:00:06:95
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:59:01:01:0F:01:00:05:08:B0
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:19:14:55:90:01:01:01:00:05:08:B0
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:3F
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:2F
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:27:00:80:65:A2:04:01:01:37
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:27:00:80:65:A2:05:01:01:37
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:27:00:80:65:A2:0C:01:01:37
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:A7:00:40:14:80:65:A2:14:01:01:37
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:08:01:01:52
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:09:01:01:52
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:09:01:02:52
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:09:01:03:52
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:829:match_atr_table: ATR     : 3b:7a:94:00:00:80:65:a2:01:01:01:3d:72:d6:43
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:7B:94:00:00:80:65:B0:83:01:01:74:83:00:90:00
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:6B:00:00:80:65:B0:83:01:01:74:83:00:90:00
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3b:6d:00:00:80:31:80:65:b0:83:01:02:90:83:00:90:00
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:843:match_atr_table: ignored - wrong length
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:6B:00:00:80:65:B0:83:01:03:74:83:00:90:00
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:840:match_atr_table: ATR try : 3B:7A:94:00:00:80:65:A2:01:01:01:3D:72:D6:43
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card-gemsafeV1.c:147:gemsafe_init: called
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card-gemsafeV1.c:81:get_conf_aid: called
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card-gemsafeV1.c:93:get_conf_aid: no card specific options configured, trying default AID
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card-gemsafeV1.c:112:gp_select_applet: called
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] apdu.c:525:sc_transmit_apdu: called
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] card.c:292:sc_lock: called
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] reader-pcsc.c:243:pcsc_transmit: reader 'ACS ACR 38U-CCID 00 00'
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] apdu.c:184:sc_apdu_log:
>     Outgoing APDU data [   17 bytes] =====================================
>     00 A4 04 00 0C A0 00 00 00 18 0A 00 00 01 63 42 ..............cB
>     00                                              .
>     ======================================================================
>     0x7f9422606720 13:39:54.753 [pkcs15-tool] reader-pcsc.c:176:pcsc_internal_transmit: called
>     0x7f9422606720 13:39:54.765 [pkcs15-tool] apdu.c:184:sc_apdu_log:
>     Incoming APDU data [    2 bytes] =====================================
>     6A 82 j.
>     ======================================================================
>     0x7f9422606720 13:39:54.765 [pkcs15-tool] card.c:330:sc_unlock: called
>     0x7f9422606720 13:39:54.765 [pkcs15-tool] iso7816.c:103:iso7816_check_sw: File not found
>     0x7f9422606720 13:39:54.765 [pkcs15-tool] card-gemsafeV1.c:126:gp_select_applet: returning with: -1201 (File not found)
>     0x7f9422606720 13:39:54.765 [pkcs15-tool] card-gemsafeV1.c:176:gemsafe_init: applet selection failed
>     0x7f9422606720 13:39:54.765 [pkcs15-tool] reader-pcsc.c:498:pcsc_disconnect: called
>     0x7f9422606720 13:39:55.585 [pkcs15-tool] card.c:231:sc_connect_card: returning with: -1400 (Internal error)
>     Failed to connect to card: Internal error
>     0x7f9422606720 13:39:55.585 [pkcs15-tool] ctx.c:737:sc_release_context: called
>     0x7f9422606720 13:39:55.585 [pkcs15-tool] reader-pcsc.c:736:pcsc_finish: called
>
>
>
>
> _______________________________________________
> opensc-devel mailing list
> [hidden email]
> http://www.opensc-project.org/mailman/listinfo/opensc-devel

--

  Douglas E. Engert  <[hidden email]>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Gemplus GemXpresso Pro R3 E32 PK

Martin Paljak-4
Hello,

On Wed, Aug 17, 2011 at 23:39, Douglas E. Engert <[hidden email]> wrote:

> --- a/src/libopensc/card-gemsafeV1.c
> +++ b/src/libopensc/card-gemsafeV1.c
> @@ -172,6 +172,7 @@ static int gemsafe_init(struct sc_card *card)
>         /* SELECT applet */
>         r = gp_select_applet(card, exdata->aid, exdata->aid_len);
>         if (r < 0) {
> +               card->lock_count--;
>                 free(exdata);
>                 sc_debug(card->ctx, SC_LOG_DEBUG_NORMAL, "applet selection failed\n");
>                 return SC_ERROR_INTERNAL;

sc_lock/sc_unlock should be used instead of direct modification.

Best,
Martin
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Gemplus GemXpresso Pro R3 E32 PK

Douglas E. Engert


On 8/18/2011 9:26 AM, Martin Paljak wrote:

> Hello,
>
> On Wed, Aug 17, 2011 at 23:39, Douglas E. Engert<[hidden email]>  wrote:
>
>> --- a/src/libopensc/card-gemsafeV1.c
>> +++ b/src/libopensc/card-gemsafeV1.c
>> @@ -172,6 +172,7 @@ static int gemsafe_init(struct sc_card *card)
>>          /* SELECT applet */
>>          r = gp_select_applet(card, exdata->aid, exdata->aid_len);
>>          if (r<  0) {
>> +               card->lock_count--;
>>                  free(exdata);
>>                  sc_debug(card->ctx, SC_LOG_DEBUG_NORMAL, "applet selection failed\n");
>>                  return SC_ERROR_INTERNAL;
>
> sc_lock/sc_unlock should be used instead of direct modification.

The patch was in the spirit of the current code, that already does
card->lock_count++; before this, and card->lock_count--; after this.

sc_lock/sc_unlock appears to be a better way. I don't know why it was
not used in the first place. I have no way to test this code, just
pointing out what appears to be the problem.

>
> Best,
> Martin
>
>

--

  Douglas E. Engert  <[hidden email]>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Gemplus GemXpresso Pro R3 E32 PK

Martin Paljak-4
On 18/08/11 17:34, Douglas E. Engert wrote:

> The patch was in the spirit of the current code, that already does
> card->lock_count++; before this, and card->lock_count--; after this.
Ah, a good thing to grep for :)

Thanks,

Martin
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-devel