gpg2, gpgsm & pkcs15 compliant file system on smart card

* crack77 at libero.it
Thu Apr 29 19:48:09 CEST 2004


On my LINUX box (Debian 3.0r1 "woody" i386) i have:

towitoko chipdrive micro USB
GPK 16000 blank (not gemsafe)
gnupg-1.9.7
libgcrypt-1.1.94
opensc 0.8.1 (snapshot  20040424 on /usr/local)
openct 0.5     (deb package)
pcscd 1.2.0

Now, all is working (openct and openct and pcsc  too, obiousvly): 

1)reader, card initializing ,reading, writing  X.509 certificate with pkcs15-init (p12 format) 

2)gnupg (gpg2 by gpa interface and by prompt with key generation, signing ecc.) - libgcrypt-1.1.94 tests are all passed

3)pkcs15 file system creation on smart card with pkcs15-init

4) mozilla with same certificate (OpenCA fully working but not real authority) and pkcs11 plugin by opensc (token access and  use)
 
5) pam module with opensc (login).

When i use:
 
gpg2 --card-status or
gpg2 --card-edit or 

scdaemon --server --debug-sc 3 --allow admin 
..
< learn --force
..

log file result is as reported below.

My opinion is gpg2 or gpgsm (scdaemon and gpg-agent correctly work when invoked) don't find openpgp card structure or application files but the README 
file in gnupg-1.9.7  says 

"GPGSM, the CMS (S/MIME) part of GnuPG, supports two kinds of smartcards.  
The most flexible way is to use PKCS#15 compliant cards ......"

Have you some opinion ?

Thank you for attention

  Daniele Vetrugno


----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
scdaemon log file
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
scdaemon[1864.0x8064738] DBG: -> OK GNU Privacy Guard's Smartcard server ready
scdaemon[1864.0x8064738] DBG: <- learn
sc.c:120:sc_detect_card_presence: called
sc.c:125:sc_detect_card_presence: returning with: 1
card.c:346:sc_connect_card: called
card.c:431:sc_connect_card: returning with: 0
2004-04-29 18:57:30 scdaemon[1864] connected to card in opensc reader 0 using driver `EMV compatible cards'
2004-04-29 18:57:30 scdaemon[1864] reader slot 0: active protocol:
2004-04-29 18:57:30 scdaemon[1864] reader 0: ATR=3B A7 00 40 18 80 65 A2 09 01 03 52
2004-04-29 18:57:30 scdaemon[1864] DBG: send apdu: c=00 i=A4 p0=00 p1=0C lc=2 le=-1
2004-04-29 18:57:30 scdaemon[1864] DBG:   APDU_data: 00 A4 00 0C 02 3F 00
card.c:229:sc_transmit_apdu: called
card.c:468:sc_lock: called
card.c:196:sc_transceive: Sending 7 bytes (resp. 260 bytes):
00 A4 00 0C 02 3F 00 .....?.
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=90 SW2=00)
card.c:488:sc_unlock: called
card.c:493:sc_unlock: Calling card logout function
card.c:691:sc_select_file: called; type=2, path=3f00
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 7 bytes (resp. 2 bytes):
00 A4 00 00 02 3F 00 .....?.
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=61 SW2=12)
iso7816.c:440:iso7816_select_file: returning with: 0
card.c:713:sc_select_file: returning with: 0
2004-04-29 18:57:30 scdaemon[1864] DBG:  response: sw=9000  datalen=0
2004-04-29 18:57:30 scdaemon[1864] DBG:      dump:  
2004-04-29 18:57:30 scdaemon[1864] DBG: send apdu: c=00 i=A4 p0=02 p1=0C lc=2 le=-1
2004-04-29 18:57:30 scdaemon[1864] DBG:   APDU_data: 00 A4 02 0C 02 2F 02
card.c:229:sc_transmit_apdu: called
card.c:468:sc_lock: called
card.c:196:sc_transceive: Sending 7 bytes (resp. 260 bytes):
00 A4 02 0C 02 2F 02 ...../.
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=6A SW2=82)
card.c:488:sc_unlock: called
card.c:493:sc_unlock: Calling card logout function
card.c:691:sc_select_file: called; type=2, path=3f00
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 7 bytes (resp. 2 bytes):
00 A4 00 00 02 3F 00 .....?.
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=61 SW2=12)
iso7816.c:440:iso7816_select_file: returning with: 0
card.c:713:sc_select_file: returning with: 0
2004-04-29 18:57:30 scdaemon[1864] DBG:  response: sw=6A82  datalen=0
2004-04-29 18:57:30 scdaemon[1864] DBG: send apdu: c=00 i=A4 p0=04 p1=00 lc=6 le=-1
2004-04-29 18:57:30 scdaemon[1864] DBG:   APDU_data: 00 A4 04 00 06 D2 76 00 01 24 01
card.c:229:sc_transmit_apdu: called
card.c:468:sc_lock: called
card.c:196:sc_transceive: Sending 11 bytes (resp. 260 bytes):
00 A4 04 00 06 D2 76 00 01 24 01 ......v..$.
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=6A SW2=82)
card.c:488:sc_unlock: called
card.c:493:sc_unlock: Calling card logout function
card.c:691:sc_select_file: called; type=2, path=3f00
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 7 bytes (resp. 2 bytes):
00 A4 00 00 02 3F 00 .....?.
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=61 SW2=12)
iso7816.c:440:iso7816_select_file: returning with: 0
card.c:713:sc_select_file: returning with: 0
2004-04-29 18:57:30 scdaemon[1864] DBG:  response: sw=6A82  datalen=0
2004-04-29 18:57:30 scdaemon[1864] DBG: send apdu: c=00 i=A4 p0=04 p1=0C lc=7 le=-1
2004-04-29 18:57:30 scdaemon[1864] DBG:   APDU_data: 00 A4 04 0C 07 D2 76 00 00 03 01 02
card.c:229:sc_transmit_apdu: called
card.c:468:sc_lock: called
card.c:196:sc_transceive: Sending 12 bytes (resp. 260 bytes):
00 A4 04 0C 07 D2 76 00 00 03 01 02 ......v.....
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=6A SW2=82)
card.c:488:sc_unlock: called
card.c:493:sc_unlock: Calling card logout function
card.c:691:sc_select_file: called; type=2, path=3f00
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 7 bytes (resp. 2 bytes):
00 A4 00 00 02 3F 00 .....?.
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=61 SW2=12)
iso7816.c:440:iso7816_select_file: returning with: 0
card.c:713:sc_select_file: returning with: 0
2004-04-29 18:57:31 scdaemon[1864] DBG:  response: sw=6A82  datalen=0
2004-04-29 18:57:31 scdaemon[1864] DBG: send apdu: c=00 i=A4 p0=04 p1=0C lc=6 le=-1
2004-04-29 18:57:31 scdaemon[1864] DBG:   APDU_data: 00 A4 04 0C 06 D2 76 00 00 66 01
card.c:229:sc_transmit_apdu: called
card.c:468:sc_lock: called
card.c:196:sc_transceive: Sending 11 bytes (resp. 260 bytes):
00 A4 04 0C 06 D2 76 00 00 66 01 ......v..f.
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=6A SW2=82)
card.c:488:sc_unlock: called
card.c:493:sc_unlock: Calling card logout function
card.c:691:sc_select_file: called; type=2, path=3f00
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 7 bytes (resp. 2 bytes):
00 A4 00 00 02 3F 00 .....?.
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=61 SW2=12)
iso7816.c:440:iso7816_select_file: returning with: 0
card.c:713:sc_select_file: returning with: 0
2004-04-29 18:57:31 scdaemon[1864] DBG:  response: sw=6A82  datalen=0
2004-04-29 18:57:31 scdaemon[1864] no supported card application found: No such file or directory
sc.c:120:sc_detect_card_presence: called
sc.c:125:sc_detect_card_presence: returning with: 1
card.c:346:sc_connect_card: called
card.c:401:sc_connect_card: trying driver: EMV compatible cards
card-emv.c:98:emv_match_card: ATR parse: TB1 = 0x00 TD1 = 0x40 TC2 = 0x18 
card-emv.c:101:emv_match_card: historic bytes:
80 65 A2 09 01 03 52 .e....R
card.c:401:sc_connect_card: trying driver: Siemens CardOS
card.c:401:sc_connect_card: trying driver: Schlumberger Multiflex/Cryptoflex
card.c:401:sc_connect_card: trying driver: Schlumberger Cyberflex
card.c:401:sc_connect_card: trying driver: Gemplus GPK driver
card.c:407:sc_connect_card: matched: Gemplus GPK driver
card.c:468:sc_lock: called
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 5 bytes (resp. 15 bytes):
80 C0 02 A4 0D .....
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=6B SW2=00)
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 5 bytes (resp. 15 bytes):
80 C0 02 A4 0D .....
card.c:249:sc_transmit_apdu: Received 13 bytes (SW1=90 SW2=00)
A2 09 01 01 52 00 FF 00 10 00 FF 86 86 ....R........
card.c:488:sc_unlock: called
card.c:493:sc_unlock: Calling card logout function
card.c:691:sc_select_file: called; type=2, path=3f00
card-gpk.c:652:gpk_select_file: called
card-gpk.c:613:gpk_select_id: gpk_select_id(0x3F00, kind=0)
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 7 bytes (resp. 2 bytes):
00 A4 00 00 02 3F 00 .....?.
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=61 SW2=12)
card.c:713:sc_select_file: returning with: 0
card.c:431:sc_connect_card: returning with: 0
2004-04-29 18:57:32 scdaemon[1864] connected to card in reader 0 using driver `Gemplus GPK driver'
card.c:468:sc_lock: called
pkcs15.c:437:sc_pkcs15_bind: called
pkcs15-syn.c:52:sc_pkcs15_bind_synthetic: called
card.c:691:sc_select_file: called; type=2, path=3f002f00
card-gpk.c:652:gpk_select_file: called
card-gpk.c:613:gpk_select_id: gpk_select_id(0x2F00, kind=2)
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 8 bytes (resp. 258 bytes):
00 A4 02 00 02 2F 00 00 ...../..
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=61 SW2=12)
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 5 bytes (resp. 20 bytes):
00 C0 00 00 12 .....
card.c:249:sc_transmit_apdu: Received 18 bytes (SW1=90 SW2=00)
85 10 01 02 2F 00 01 00 00 80 00 00 00 00 00 00 ..../...........
00 6F                                           .o
iso7816.c:591:iso7816_get_response: returning with: 18
card.c:713:sc_select_file: returning with: 0
card.c:563:sc_read_binary: called; 128 bytes at index 0
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 5 bytes (resp. 130 bytes):
00 B0 00 00 80 .....
card.c:249:sc_transmit_apdu: Received 128 bytes (SW1=90 SW2=00)
61 20 4F 0C A0 00 00 00 63 50 4B 43 53 2D 31 35 a O.....cPKCS-15
50 0A 62 65 74 65 6C 67 65 75 73 65 51 04 3F 00 P.betelgeuseQ.?.
50 15 00 00 00 00 00 00 00 00 00 00 00 00 00 00 P...............
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
iso7816.c:126:iso7816_read_binary: returning with: 128
card.c:594:sc_read_binary: returning with: 128
asn1.c:1035:asn1_decode: called, left=128, depth 0
asn1.c:1060:asn1_decode: Looking for 'dirRecord', tag 0x11000001
asn1.c:859:asn1_decode_entry: decoding 'dirRecord'
asn1.c:1035:asn1_decode:  called, left=32, depth 1
asn1.c:1060:asn1_decode: Looking for 'aid', tag 0x1000000f
asn1.c:859:asn1_decode_entry:  decoding 'aid'
asn1.c:1060:asn1_decode: Looking for 'label', tag 0x10000010, OPTIONAL
asn1.c:859:asn1_decode_entry:  decoding 'label'
asn1.c:1060:asn1_decode: Looking for 'path', tag 0x10000011, OPTIONAL
asn1.c:859:asn1_decode_entry:  decoding 'path'
asn1.c:1060:asn1_decode: Looking for 'ddo', tag 0x11000013, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1035:asn1_decode: called, left=94, depth 0
card.c:691:sc_select_file: called; type=2, path=3f005015
card-gpk.c:652:gpk_select_file: called
card-gpk.c:613:gpk_select_id: gpk_select_id(0x5015, kind=2)
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 7 bytes (resp. 2 bytes):
00 A4 02 00 02 50 15 .....P.
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=6A SW2=82)
iso7816.c:98:iso7816_check_sw: File not found
card-gpk.c:584:gpk_select: Card returned error: File not found
card-gpk.c:613:gpk_select_id: gpk_select_id(0x3F00, kind=0)
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 7 bytes (resp. 2 bytes):
00 A4 00 00 02 3F 00 .....?.
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=61 SW2=12)
card-gpk.c:613:gpk_select_id: gpk_select_id(0x5015, kind=1)
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 7 bytes (resp. 2 bytes):
00 A4 01 00 02 50 15 .....P.
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=61 SW2=20)
card.c:713:sc_select_file: returning with: 0
card.c:691:sc_select_file: called; type=2, path=3f0050155031
card-gpk.c:652:gpk_select_file: called
card-gpk.c:613:gpk_select_id: gpk_select_id(0x5031, kind=2)
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 8 bytes (resp. 258 bytes):
00 A4 02 00 02 50 31 00 .....P1.
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=61 SW2=12)
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 5 bytes (resp. 20 bytes):
00 C0 00 00 12 .....
card.c:249:sc_transmit_apdu: Received 18 bytes (SW1=90 SW2=00)
85 10 42 03 50 31 01 00 01 00 00 00 00 00 00 00 ..B.P1..........
00 6D                                           .m
iso7816.c:591:iso7816_get_response: returning with: 18
card.c:713:sc_select_file: returning with: 0
card.c:563:sc_read_binary: called; 256 bytes at index 0
card.c:563:sc_read_binary: called; 248 bytes at index 0
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 5 bytes (resp. 250 bytes):
00 B0 00 00 F8 .....
card.c:249:sc_transmit_apdu: Received 248 bytes (SW1=90 SW2=00)
A8 0A 30 08 04 06 3F 00 50 15 44 01 A0 0A 30 08 ..0...?.P.D...0.
04 06 3F 00 50 15 44 02 A4 0A 30 08 04 06 3F 00 ..?.P.D...0...?.
50 15 44 04 00 00 00 00 00 00 00 00 00 00 00 00 P.D.............
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00                         ........
iso7816.c:126:iso7816_read_binary: returning with: 248
card.c:594:sc_read_binary: returning with: 248
card.c:563:sc_read_binary: called; 8 bytes at index 248
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 5 bytes (resp. 10 bytes):
00 B0 00 3E 08 ...>.
card.c:249:sc_transmit_apdu: Received 8 bytes (SW1=90 SW2=00)
00 00 00 00 00 00 00 00 ........
iso7816.c:126:iso7816_read_binary: returning with: 8
card.c:594:sc_read_binary: returning with: 8
card.c:591:sc_read_binary: returning with: 256
asn1.c:1035:asn1_decode: called, left=256, depth 0, choice
asn1.c:1060:asn1_decode: Looking for 'privateKeys', tag 0x21000000, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'publicKeys', tag 0x21000001, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'trustedPublicKeys', tag 0x21000002, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'certificates', tag 0x21000004, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'trustedCertificates', tag 0x21000005, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'usefulCertificates', tag 0x21000006, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'dataObjects', tag 0x21000007, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'authObjects', tag 0x21000008, CHOICE
asn1.c:859:asn1_decode_entry: decoding 'authObjects'
asn1.c:1035:asn1_decode:  called, left=10, depth 1
asn1.c:1060:asn1_decode: Looking for 'path', tag 0x1000010
asn1.c:859:asn1_decode_entry:  decoding 'path'
asn1.c:1035:asn1_decode:   called, left=8, depth 2
asn1.c:1060:asn1_decode: Looking for 'path', tag 0x4
asn1.c:859:asn1_decode_entry:   decoding 'path'
asn1.c:1060:asn1_decode: Looking for 'index', tag 0x2, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'length', tag 0x20000000, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1110:asn1_decode: returning with: 7
asn1.c:1035:asn1_decode: called, left=244, depth 0, choice
asn1.c:1060:asn1_decode: Looking for 'privateKeys', tag 0x21000000, CHOICE
asn1.c:859:asn1_decode_entry: decoding 'privateKeys'
asn1.c:1035:asn1_decode:  called, left=10, depth 1
asn1.c:1060:asn1_decode: Looking for 'path', tag 0x1000010
asn1.c:859:asn1_decode_entry:  decoding 'path'
asn1.c:1035:asn1_decode:   called, left=8, depth 2
asn1.c:1060:asn1_decode: Looking for 'path', tag 0x4
asn1.c:859:asn1_decode_entry:   decoding 'path'
asn1.c:1060:asn1_decode: Looking for 'index', tag 0x2, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'length', tag 0x20000000, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1110:asn1_decode: returning with: 0
asn1.c:1035:asn1_decode: called, left=232, depth 0, choice
asn1.c:1060:asn1_decode: Looking for 'privateKeys', tag 0x21000000, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'publicKeys', tag 0x21000001, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'trustedPublicKeys', tag 0x21000002, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'certificates', tag 0x21000004, CHOICE
asn1.c:859:asn1_decode_entry: decoding 'certificates'
asn1.c:1035:asn1_decode:  called, left=10, depth 1
asn1.c:1060:asn1_decode: Looking for 'path', tag 0x1000010
asn1.c:859:asn1_decode_entry:  decoding 'path'
asn1.c:1035:asn1_decode:   called, left=8, depth 2
asn1.c:1060:asn1_decode: Looking for 'path', tag 0x4
asn1.c:859:asn1_decode_entry:   decoding 'path'
asn1.c:1060:asn1_decode: Looking for 'index', tag 0x2, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'length', tag 0x20000000, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1110:asn1_decode: returning with: 3
asn1.c:1035:asn1_decode: called, left=220, depth 0, choice
pkcs15.c:545:sc_pkcs15_bind: The following DFs were found:
pkcs15.c:550:sc_pkcs15_bind:   DF type 8, path 3f0050154401, index 0, count -1
pkcs15.c:550:sc_pkcs15_bind:   DF type 0, path 3f0050154402, index 0, count -1
pkcs15.c:550:sc_pkcs15_bind:   DF type 4, path 3f0050154404, index 0, count -1
card.c:691:sc_select_file: called; type=2, path=3f0050155032
card-gpk.c:652:gpk_select_file: called
card-gpk.c:613:gpk_select_id: gpk_select_id(0x5032, kind=2)
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 8 bytes (resp. 258 bytes):
00 A4 02 00 02 50 32 00 .....P2.
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=61 SW2=12)
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 5 bytes (resp. 20 bytes):
00 C0 00 00 12 .....
card.c:249:sc_transmit_apdu: Received 18 bytes (SW1=90 SW2=00)
85 10 42 04 50 32 01 00 00 29 00 00 00 00 00 00 ..B.P2...)......
00 6C                                           .l
iso7816.c:591:iso7816_get_response: returning with: 18
card.c:713:sc_select_file: returning with: 0
card.c:563:sc_read_binary: called; 41 bytes at index 0
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 5 bytes (resp. 43 bytes):
00 B0 00 00 29 ....)
card.c:249:sc_transmit_apdu: Received 41 bytes (SW1=90 SW2=00)
30 27 02 01 00 04 02 00 00 0C 0E 4F 70 65 6E 53 0'.........OpenS
43 20 50 72 6F 6A 65 63 74 80 0A 62 65 74 65 6C C Project..betel
67 65 75 73 65 03 02 04 10                      geuse....
iso7816.c:126:iso7816_read_binary: returning with: 41
card.c:594:sc_read_binary: returning with: 41
asn1.c:1035:asn1_decode: called, left=41, depth 0
asn1.c:1060:asn1_decode: Looking for 'TokenInfo', tag 0x1000010
asn1.c:859:asn1_decode_entry: decoding 'TokenInfo'
asn1.c:1035:asn1_decode:  called, left=39, depth 1
asn1.c:1060:asn1_decode: Looking for 'version', tag 0x2
asn1.c:859:asn1_decode_entry:  decoding 'version'
asn1.c:1060:asn1_decode: Looking for 'serialNumber', tag 0x4
asn1.c:859:asn1_decode_entry:  decoding 'serialNumber'
asn1.c:1060:asn1_decode: Looking for 'manufacturerID', tag 0xc, OPTIONAL
asn1.c:859:asn1_decode_entry:  decoding 'manufacturerID'
asn1.c:1060:asn1_decode: Looking for 'label', tag 0x20000000, OPTIONAL
asn1.c:859:asn1_decode_entry:  decoding 'label'
asn1.c:1060:asn1_decode: Looking for 'tokenflags', tag 0x3
asn1.c:859:asn1_decode_entry:  decoding 'tokenflags'
asn1.c:1060:asn1_decode: Looking for 'seInfo', tag 0x1000010, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'recordInfo', tag 0x21000001, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'supportedAlgorithms', tag 0x21000002, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1111:asn1_decode: returning with: 0
card.c:691:sc_select_file: called; type=2, path=3f002f02
card-gpk.c:652:gpk_select_file: called
card-gpk.c:613:gpk_select_id: gpk_select_id(0x2F02, kind=2)
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 8 bytes (resp. 258 bytes):
00 A4 02 00 02 2F 02 00 ...../..
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=6A SW2=82)
iso7816.c:98:iso7816_check_sw: File not found
card-gpk.c:584:gpk_select: Card returned error: File not found
card-gpk.c:613:gpk_select_id: gpk_select_id(0x3F00, kind=0)
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 7 bytes (resp. 2 bytes):
00 A4 00 00 02 3F 00 .....?.
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=61 SW2=12)
card-gpk.c:613:gpk_select_id: gpk_select_id(0x2F02, kind=1)
card.c:229:sc_transmit_apdu: called
card.c:196:sc_transceive: Sending 8 bytes (resp. 258 bytes):
00 A4 01 00 02 2F 02 00 ...../..
card.c:249:sc_transmit_apdu: Received 0 bytes (SW1=6A SW2=82)
iso7816.c:98:iso7816_check_sw: File not found
card-gpk.c:584:gpk_select: Card returned error: File not found
card.c:713:sc_select_file: returning with: File not found
2004-04-29 18:57:33 scdaemon[1864] sc_select_file failed: File not found
scdaemon[1864.0x8064738] DBG: -> ERR 100663404 Card error <SCD>
scdaemon[1864.0x8064738] DBG: <- 
scdaemon[1864.0x8064738] DBG: <- 
scdaemon[1885.0x8064738] DBG: -> OK GNU Privacy Guard's Smartcard server ready
scdaemon[1885.0x8064738] DBG: <- learn
sc.c:120:sc_detect_card_presence: called
sc.c:125:sc_detect_card_presence: returning with: 1
card.c:346:sc_connect_card: called
card.c:431:sc_connect_card: returning with: 0
2004-04-29 19:14:46 scdaemon[1885] connected to card in opensc reader 0 using driver `EMV compatible cards'
2004-04-29 19:14:46 scdaemon[1885] reader slot 0: active protocol:
2004-04-29 19:14:46 scdaemon[1885] reader 0: ATR=3B A7 00 40 18 80 65 A2 09 01 03 52
2004-04-29 19:14:46 scdaemon[1885] DBG: send apdu: c=00 i=A4 p0=00 p1=0C lc=2 le=-1
2004-04-29 19:14:46 scdaemon[1885] DBG:   APDU_data: 00 A4 00 0C 02 3F 00
card.c:468:sc_lock: called
card.c:488:sc_unlock: called
card.c:493:sc_unlock: Calling card logout function
card.c:691:sc_select_file: called; type=2, path=3f00
iso7816.c:440:iso7816_select_file: returning with: 0
card.c:713:sc_select_file: returning with: 0
2004-04-29 19:14:46 scdaemon[1885] DBG:  response: sw=9000  datalen=0
2004-04-29 19:14:46 scdaemon[1885] DBG:      dump:  
2004-04-29 19:14:46 scdaemon[1885] DBG: send apdu: c=00 i=A4 p0=02 p1=0C lc=2 le=-1
2004-04-29 19:14:46 scdaemon[1885] DBG:   APDU_data: 00 A4 02 0C 02 2F 02
card.c:468:sc_lock: called
card.c:488:sc_unlock: called
card.c:493:sc_unlock: Calling card logout function
card.c:691:sc_select_file: called; type=2, path=3f00
iso7816.c:440:iso7816_select_file: returning with: 0
card.c:713:sc_select_file: returning with: 0
2004-04-29 19:14:47 scdaemon[1885] DBG:  response: sw=6A82  datalen=0
2004-04-29 19:14:47 scdaemon[1885] DBG: send apdu: c=00 i=A4 p0=04 p1=00 lc=6 le=-1
2004-04-29 19:14:47 scdaemon[1885] DBG:   APDU_data: 00 A4 04 00 06 D2 76 00 01 24 01
card.c:468:sc_lock: called
card.c:488:sc_unlock: called
card.c:493:sc_unlock: Calling card logout function
card.c:691:sc_select_file: called; type=2, path=3f00
iso7816.c:440:iso7816_select_file: returning with: 0
card.c:713:sc_select_file: returning with: 0
2004-04-29 19:14:47 scdaemon[1885] DBG:  response: sw=6A82  datalen=0
2004-04-29 19:14:47 scdaemon[1885] DBG: send apdu: c=00 i=A4 p0=04 p1=0C lc=7 le=-1
2004-04-29 19:14:47 scdaemon[1885] DBG:   APDU_data: 00 A4 04 0C 07 D2 76 00 00 03 01 02
card.c:468:sc_lock: called
card.c:488:sc_unlock: called
card.c:493:sc_unlock: Calling card logout function
card.c:691:sc_select_file: called; type=2, path=3f00
iso7816.c:440:iso7816_select_file: returning with: 0
card.c:713:sc_select_file: returning with: 0
2004-04-29 19:14:47 scdaemon[1885] DBG:  response: sw=6A82  datalen=0
2004-04-29 19:14:47 scdaemon[1885] DBG: send apdu: c=00 i=A4 p0=04 p1=0C lc=6 le=-1
2004-04-29 19:14:47 scdaemon[1885] DBG:   APDU_data: 00 A4 04 0C 06 D2 76 00 00 66 01
card.c:468:sc_lock: called
card.c:488:sc_unlock: called
card.c:493:sc_unlock: Calling card logout function
card.c:691:sc_select_file: called; type=2, path=3f00
iso7816.c:440:iso7816_select_file: returning with: 0
card.c:713:sc_select_file: returning with: 0
2004-04-29 19:14:47 scdaemon[1885] DBG:  response: sw=6A82  datalen=0
2004-04-29 19:14:47 scdaemon[1885] no supported card application found: No such file or directory
sc.c:120:sc_detect_card_presence: called
sc.c:125:sc_detect_card_presence: returning with: 1
card.c:346:sc_connect_card: called
card.c:401:sc_connect_card: trying driver: EMV compatible cards
card.c:401:sc_connect_card: trying driver: Siemens CardOS
card.c:401:sc_connect_card: trying driver: Schlumberger Multiflex/Cryptoflex
card.c:401:sc_connect_card: trying driver: Schlumberger Cyberflex
card.c:401:sc_connect_card: trying driver: Gemplus GPK driver
card.c:407:sc_connect_card: matched: Gemplus GPK driver
card.c:468:sc_lock: called
card.c:488:sc_unlock: called
card.c:493:sc_unlock: Calling card logout function
card.c:691:sc_select_file: called; type=2, path=3f00
card-gpk.c:652:gpk_select_file: called
card-gpk.c:613:gpk_select_id: gpk_select_id(0x3F00, kind=0)
card.c:713:sc_select_file: returning with: 0
card.c:431:sc_connect_card: returning with: 0
2004-04-29 19:14:48 scdaemon[1885] connected to card in reader 0 using driver `Gemplus GPK driver'
card.c:468:sc_lock: called
pkcs15.c:437:sc_pkcs15_bind: called
pkcs15-syn.c:52:sc_pkcs15_bind_synthetic: called
card.c:691:sc_select_file: called; type=2, path=3f002f00
card-gpk.c:652:gpk_select_file: called
card-gpk.c:613:gpk_select_id: gpk_select_id(0x2F00, kind=2)
iso7816.c:591:iso7816_get_response: returning with: 18
card.c:713:sc_select_file: returning with: 0
card.c:563:sc_read_binary: called; 128 bytes at index 0
iso7816.c:126:iso7816_read_binary: returning with: 128
card.c:594:sc_read_binary: returning with: 128
asn1.c:1035:asn1_decode: called, left=128, depth 0
asn1.c:1060:asn1_decode: Looking for 'dirRecord', tag 0x11000001
asn1.c:859:asn1_decode_entry: decoding 'dirRecord'
asn1.c:1035:asn1_decode:  called, left=32, depth 1
asn1.c:1060:asn1_decode: Looking for 'aid', tag 0x1000000f
asn1.c:859:asn1_decode_entry:  decoding 'aid'
asn1.c:1060:asn1_decode: Looking for 'label', tag 0x10000010, OPTIONAL
asn1.c:859:asn1_decode_entry:  decoding 'label'
asn1.c:1060:asn1_decode: Looking for 'path', tag 0x10000011, OPTIONAL
asn1.c:859:asn1_decode_entry:  decoding 'path'
asn1.c:1060:asn1_decode: Looking for 'ddo', tag 0x11000013, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1035:asn1_decode: called, left=94, depth 0
card.c:691:sc_select_file: called; type=2, path=3f005015
card-gpk.c:652:gpk_select_file: called
card-gpk.c:613:gpk_select_id: gpk_select_id(0x5015, kind=2)
iso7816.c:98:iso7816_check_sw: File not found
card-gpk.c:584:gpk_select: Card returned error: File not found
card-gpk.c:613:gpk_select_id: gpk_select_id(0x3F00, kind=0)
card-gpk.c:613:gpk_select_id: gpk_select_id(0x5015, kind=1)
card.c:713:sc_select_file: returning with: 0
card.c:691:sc_select_file: called; type=2, path=3f0050155031
card-gpk.c:652:gpk_select_file: called
card-gpk.c:613:gpk_select_id: gpk_select_id(0x5031, kind=2)
iso7816.c:591:iso7816_get_response: returning with: 18
card.c:713:sc_select_file: returning with: 0
card.c:563:sc_read_binary: called; 256 bytes at index 0
card.c:563:sc_read_binary: called; 248 bytes at index 0
iso7816.c:126:iso7816_read_binary: returning with: 248
card.c:594:sc_read_binary: returning with: 248
card.c:563:sc_read_binary: called; 8 bytes at index 248
iso7816.c:126:iso7816_read_binary: returning with: 8
card.c:594:sc_read_binary: returning with: 8
card.c:591:sc_read_binary: returning with: 256
asn1.c:1035:asn1_decode: called, left=256, depth 0, choice
asn1.c:1060:asn1_decode: Looking for 'privateKeys', tag 0x21000000, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'publicKeys', tag 0x21000001, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'trustedPublicKeys', tag 0x21000002, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'certificates', tag 0x21000004, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'trustedCertificates', tag 0x21000005, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'usefulCertificates', tag 0x21000006, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'dataObjects', tag 0x21000007, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'authObjects', tag 0x21000008, CHOICE
asn1.c:859:asn1_decode_entry: decoding 'authObjects'
asn1.c:1035:asn1_decode:  called, left=10, depth 1
asn1.c:1060:asn1_decode: Looking for 'path', tag 0x1000010
asn1.c:859:asn1_decode_entry:  decoding 'path'
asn1.c:1035:asn1_decode:   called, left=8, depth 2
asn1.c:1060:asn1_decode: Looking for 'path', tag 0x4
asn1.c:859:asn1_decode_entry:   decoding 'path'
asn1.c:1060:asn1_decode: Looking for 'index', tag 0x2, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'length', tag 0x20000000, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1110:asn1_decode: returning with: 7
asn1.c:1035:asn1_decode: called, left=244, depth 0, choice
asn1.c:1060:asn1_decode: Looking for 'privateKeys', tag 0x21000000, CHOICE
asn1.c:859:asn1_decode_entry: decoding 'privateKeys'
asn1.c:1035:asn1_decode:  called, left=10, depth 1
asn1.c:1060:asn1_decode: Looking for 'path', tag 0x1000010
asn1.c:859:asn1_decode_entry:  decoding 'path'
asn1.c:1035:asn1_decode:   called, left=8, depth 2
asn1.c:1060:asn1_decode: Looking for 'path', tag 0x4
asn1.c:859:asn1_decode_entry:   decoding 'path'
asn1.c:1060:asn1_decode: Looking for 'index', tag 0x2, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'length', tag 0x20000000, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1110:asn1_decode: returning with: 0
asn1.c:1035:asn1_decode: called, left=232, depth 0, choice
asn1.c:1060:asn1_decode: Looking for 'privateKeys', tag 0x21000000, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'publicKeys', tag 0x21000001, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'trustedPublicKeys', tag 0x21000002, CHOICE
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'certificates', tag 0x21000004, CHOICE
asn1.c:859:asn1_decode_entry: decoding 'certificates'
asn1.c:1035:asn1_decode:  called, left=10, depth 1
asn1.c:1060:asn1_decode: Looking for 'path', tag 0x1000010
asn1.c:859:asn1_decode_entry:  decoding 'path'
asn1.c:1035:asn1_decode:   called, left=8, depth 2
asn1.c:1060:asn1_decode: Looking for 'path', tag 0x4
asn1.c:859:asn1_decode_entry:   decoding 'path'
asn1.c:1060:asn1_decode: Looking for 'index', tag 0x2, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'length', tag 0x20000000, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1110:asn1_decode: returning with: 3
asn1.c:1035:asn1_decode: called, left=220, depth 0, choice
pkcs15.c:545:sc_pkcs15_bind: The following DFs were found:
pkcs15.c:550:sc_pkcs15_bind:   DF type 8, path 3f0050154401, index 0, count -1
pkcs15.c:550:sc_pkcs15_bind:   DF type 0, path 3f0050154402, index 0, count -1
pkcs15.c:550:sc_pkcs15_bind:   DF type 4, path 3f0050154404, index 0, count -1
card.c:691:sc_select_file: called; type=2, path=3f0050155032
card-gpk.c:652:gpk_select_file: called
card-gpk.c:613:gpk_select_id: gpk_select_id(0x5032, kind=2)
iso7816.c:591:iso7816_get_response: returning with: 18
card.c:713:sc_select_file: returning with: 0
card.c:563:sc_read_binary: called; 41 bytes at index 0
iso7816.c:126:iso7816_read_binary: returning with: 41
card.c:594:sc_read_binary: returning with: 41
asn1.c:1035:asn1_decode: called, left=41, depth 0
asn1.c:1060:asn1_decode: Looking for 'TokenInfo', tag 0x1000010
asn1.c:859:asn1_decode_entry: decoding 'TokenInfo'
asn1.c:1035:asn1_decode:  called, left=39, depth 1
asn1.c:1060:asn1_decode: Looking for 'version', tag 0x2
asn1.c:859:asn1_decode_entry:  decoding 'version'
asn1.c:1060:asn1_decode: Looking for 'serialNumber', tag 0x4
asn1.c:859:asn1_decode_entry:  decoding 'serialNumber'
asn1.c:1060:asn1_decode: Looking for 'manufacturerID', tag 0xc, OPTIONAL
asn1.c:859:asn1_decode_entry:  decoding 'manufacturerID'
asn1.c:1060:asn1_decode: Looking for 'label', tag 0x20000000, OPTIONAL
asn1.c:859:asn1_decode_entry:  decoding 'label'
asn1.c:1060:asn1_decode: Looking for 'tokenflags', tag 0x3
asn1.c:859:asn1_decode_entry:  decoding 'tokenflags'
asn1.c:1060:asn1_decode: Looking for 'seInfo', tag 0x1000010, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'recordInfo', tag 0x21000001, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1060:asn1_decode: Looking for 'supportedAlgorithms', tag 0x21000002, OPTIONAL
asn1.c:1076:asn1_decode: not present
asn1.c:1111:asn1_decode: returning with: 0
asn1.c:1111:asn1_decode: returning with: 0
card.c:691:sc_select_file: called; type=2, path=3f002f02
card-gpk.c:652:gpk_select_file: called
card-gpk.c:613:gpk_select_id: gpk_select_id(0x2F02, kind=2)
iso7816.c:98:iso7816_check_sw: File not found
card-gpk.c:584:gpk_select: Card returned error: File not found
card-gpk.c:613:gpk_select_id: gpk_select_id(0x3F00, kind=0)
card-gpk.c:613:gpk_select_id: gpk_select_id(0x2F02, kind=1)
iso7816.c:98:iso7816_check_sw: File not found
card-gpk.c:584:gpk_select: Card returned error: File not found
card.c:713:sc_select_file: returning with: File not found
2004-04-29 19:14:49 scdaemon[1885] sc_select_file failed: File not found
scdaemon[1885.0x8064738] DBG: -> ERR 100663404 Card error <SCD>





More information about the Gnupg-devel mailing list