Ticket #189 (closed defect: fixed)
Problems with opensc-pkcs11.so
| Reported by: | boarmanc | Owned by: | opensc-devel@… |
|---|---|---|---|
| Priority: | low | Milestone: | 0.12.1 |
| Component: | card_driver | Version: | 0.11.6 |
| Severity: | normal | Keywords: | PIV, obsolete |
| Cc: | Blocked By: | ||
| Blocking: |
Description (last modified by martin) (diff)
I am testing middleware products and currently working with two: ActivClient? and OpenSC. Right now, I can only get the pkcs11 module from ActivClient? to work. Here is the comparison of the two using the pkcs11-tool:
PKCS#11 Interface works using ActivClient? PKCS11 module:
[root@etsorh5ai OPENSC]# pkcs11-tool --module /usr/local/ActivIdentity/ActivClient/lib/libacpkcs211.so -L Available slots: Slot 0 OMNIKEY CardMan 3x21 00 00 token label: ActivIdentity ActivClient 0 token manuf: Oberthur token model: ID-One Cosmo 64 token flags: login required, PIN initialized, token initialized serial num : 3133314335333741
PKCS#11 Interface fails using OpenSC PKCS11 module:
[root@etsorh5ai opensc-0.11.8]# pkcs11-tool --module /usr/lib/pkcs11/opensc-pkcs11.so -L [opensc-pkcs11] pkcs15-cert.c:83:parse_x509_cert: X.509 certificate not found [opensc-pkcs11] pkcs15-piv.c:338:sc_pkcs15emu_piv_init: Failed to read/parse the certificate r=-1401 [opensc-pkcs11] pkcs15-cert.c:83:parse_x509_cert: X.509 certificate not found [opensc-pkcs11] pkcs15-piv.c:338:sc_pkcs15emu_piv_init: Failed to read/parse the certificate r=-1401 [opensc-pkcs11] card-piv.c:752:piv_handle_certificate_data: returning with: Object not found [opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: Object not found [opensc-pkcs11] card.c:430:sc_read_binary: returning with: Object not found [opensc-pkcs11] card-piv.c:752:piv_handle_certificate_data: returning with: Object not found [opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: Object not found [opensc-pkcs11] card.c:430:sc_read_binary: returning with: Object not found [opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: File not found [opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: File not found [opensc-pkcs11] card.c:430:sc_read_binary: returning with: File not found [opensc-pkcs11] pkcs15-pubkey.c:404:sc_pkcs15_read_pubkey: Failed to read public key file. [opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: File not found [opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: File not found [opensc-pkcs11] card.c:430:sc_read_binary: returning with: File not found [opensc-pkcs11] pkcs15-pubkey.c:404:sc_pkcs15_read_pubkey: Failed to read public key file. [opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: File not found [opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: File not found [opensc-pkcs11] card.c:430:sc_read_binary: returning with: File not found [opensc-pkcs11] pkcs15-pubkey.c:404:sc_pkcs15_read_pubkey: Failed to read public key file. [opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: File not found [opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: File not found [opensc-pkcs11] card.c:430:sc_read_binary: returning with: File not found [opensc-pkcs11] pkcs15-pubkey.c:404:sc_pkcs15_read_pubkey: Failed to read public key file. Available slots: Slot 0 OMNIKEY CardMan 3x21 00 00 token label: PIV_II (PIV Card Holder pin) token manuf: piv_II token model: PKCS#15 emulated token flags: rng, login required, PIN initialized, token initialized serial num : 108601c84210c3e8
Attachments
Change History
Changed 3 years ago by boarmanc
-
attachment
pkcs11-tool.txt
added
debug output when running "pkcs11-tool --module /usr/lib/pkcs11/opensc-pkcs11.so -L"
comment:4 Changed 2 years ago by martin
- Priority changed from highest to normal
- Description modified (diff)
- Severity changed from blocker to normal
More information is required or the assumption that your card (apparently a PIV card?) is not supported by OpenSC. Have you tried the latest version?
comment:5 Changed 20 months ago by martin
- Keywords PIV, obsolete added
- Owner changed from opensc-devel@… to opensc-devel@…
- Priority changed from normal to low
- Component changed from opensc to card_driver
- Milestone set to 0.12.1
Without further input, this ticket shall be retired in a month. Apparently there is a problem with the PIV driver and your card. I would suggest trying either with the latest 0.11 release or SVN trunk.
comment:6 Changed 20 months ago by martin
- Status changed from new to closed
- Resolution set to fixed
Probably fixed by [3710].
See http://www.opensc-project.org/pipermail/opensc-devel/2010-June/014308.html

This is the output from "pkcs11-tool --module /usr/lib/pkcs11/opensc-pkcs11.so -L" with the debug mode enabled in /etc/opensc.conf:
[opensc-pkcs11] ctx.c:730:sc_context_create: =================================== [opensc-pkcs11] ctx.c:731:sc_context_create: opensc version: 0.11.8 [opensc-pkcs11] reader-pcsc.c:879:pcsc_detect_readers: Probing pcsc readers [opensc-pkcs11] reader-pcsc.c:901:pcsc_detect_readers: Establish pcsc context [opensc-pkcs11] reader-pcsc.c:951:pcsc_detect_readers: Found new pcsc reader 'OMNIKEY CardMan? 3x21 00 00' [opensc-pkcs11] slot.c:86:card_detect: 0: Detecting smart card [opensc-pkcs11] sc.c:196:sc_detect_card_presence: called [opensc-pkcs11] sc.c:201:sc_detect_card_presence: returning with: 1 [opensc-pkcs11] slot.c:126:card_detect: 0: Connecting to smart card [opensc-pkcs11] card.c:110:sc_connect_card: called [opensc-pkcs11] reader-pcsc.c:532:pcsc_connect: After connect protocol = 2 [opensc-pkcs11] reader-pcsc.c:551:pcsc_connect: Requesting reader features ... [opensc-pkcs11] reader-pcsc.c:556:pcsc_connect: SCardControl failed 80100016 [opensc-pkcs11] card-rutoken.c:129:rutoken_match_card: called [opensc-pkcs11] card-rutoken.c:135:rutoken_match_card: returning with: 0 [opensc-pkcs11] card-gemsafeV1.c:120:gemsafe_match_card: called [opensc-pkcs11] card-piv.c:1692:piv_match_card: called [opensc-pkcs11] card-piv.c:521:piv_find_aid: called [opensc-pkcs11] card-piv.c:536:piv_find_aid: found PIX [opensc-pkcs11] card-piv.c:550:piv_find_aid: returning with: 0 [opensc-pkcs11] card-piv.c:1711:piv_init: called [opensc-pkcs11] card-piv.c:1725:piv_init: Max send = 65535 recv = 65535 [opensc-pkcs11] card-piv.c:521:piv_find_aid: called [opensc-pkcs11] card-piv.c:536:piv_find_aid: found PIX [opensc-pkcs11] card-piv.c:550:piv_find_aid: returning with: 0 [opensc-pkcs11] card-piv.c:1751:piv_init: returning with: 0 [opensc-pkcs11] card.c:221:sc_connect_card: card info: PIV-II card, 14001, 0x0 [opensc-pkcs11] card.c:222:sc_connect_card: returning with: 0 [opensc-pkcs11] slot.c:134:card_detect: 0: Detecting Framework [opensc-pkcs11] pkcs15.c:700:sc_pkcs15_bind: called [opensc-pkcs11] card.c:532:sc_select_file: called; type=2, path=3f002f00 [opensc-pkcs11] card-piv.c:1608:piv_select_file: called [opensc-pkcs11] card-piv.c:1580:piv_find_obj_by_containerid: str=0x2F00 [opensc-pkcs11] card-piv.c:1623:piv_select_file: returning with: -1201 [opensc-pkcs11] card.c:554:sc_select_file: returning with: -1201 [opensc-pkcs11] card.c:532:sc_select_file: called; type=2, path=3f005015 [opensc-pkcs11] card-piv.c:1608:piv_select_file: called [opensc-pkcs11] card-piv.c:1580:piv_find_obj_by_containerid: str=0x5015 [opensc-pkcs11] card-piv.c:1623:piv_select_file: returning with: -1201 [opensc-pkcs11] card.c:554:sc_select_file: returning with: -1201 [opensc-pkcs11] card.c:532:sc_select_file: called; type=2, path=3f005031 [opensc-pkcs11] card-piv.c:1608:piv_select_file: called [opensc-pkcs11] card-piv.c:1580:piv_find_obj_by_containerid: str=0x5031 [opensc-pkcs11] card-piv.c:1623:piv_select_file: returning with: -1201 [opensc-pkcs11] card.c:554:sc_select_file: returning with: -1201 [opensc-pkcs11] pkcs15.c:593:sc_pkcs15_bind_internal: EF(ODF) not found in '3f005031' [opensc-pkcs11] pkcs15-syn.c:104:sc_pkcs15_bind_synthetic: called [opensc-pkcs11] pkcs15-syn.c:145:sc_pkcs15_bind_synthetic: no emulator list in config file, trying all builtin emulators [opensc-pkcs11] pkcs15-syn.c:147:sc_pkcs15_bind_synthetic: trying openpgp [opensc-pkcs11] pkcs15-syn.c:147:sc_pkcs15_bind_synthetic: trying infocamere [opensc-pkcs11] pkcs15-syn.c:147:sc_pkcs15_bind_synthetic: trying starcert [opensc-pkcs11] pkcs15-syn.c:147:sc_pkcs15_bind_synthetic: trying tcos [opensc-pkcs11] pkcs15-syn.c:147:sc_pkcs15_bind_synthetic: trying esteid [opensc-pkcs11] pkcs15-syn.c:147:sc_pkcs15_bind_synthetic: trying postecert [opensc-pkcs11] pkcs15-syn.c:147:sc_pkcs15_bind_synthetic: trying PIV-II [opensc-pkcs11] pkcs15-piv.c:499:sc_pkcs15emu_piv_init_ex: called [opensc-pkcs11] pkcs15-piv.c:100:piv_detect_card: called [opensc-pkcs11] pkcs15-piv.c:235:sc_pkcs15emu_piv_init: called [opensc-pkcs11] card-piv.c:1347:piv_get_serial_nr_from_CHUI: called [opensc-pkcs11] card-piv.c:619:piv_get_data: called [opensc-pkcs11] card-piv.c:620:piv_get_data: get_data: tag=1 [opensc-pkcs11] card-piv.c:287:piv_general_io: called [opensc-pkcs11] card-piv.c:291:piv_general_io: piv_general_io cb 3f ff 5 : 255 256 [opensc-pkcs11] card-piv.c:322:piv_general_io: calling sc_transmit_apdu flags=1 le=256, resplen=20000, resp=0xbf823c5c [opensc-pkcs11] card-piv.c:329:piv_general_io: DEE r=0 apdu.resplen=3374 sw1=90 sw2=00 [opensc-pkcs11] card-piv.c:366:piv_general_io: DEE got buffer 0x8d9a2c8 len 3374 [opensc-pkcs11] card-piv.c:385:piv_general_io: returning with: 3374 [opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: 3374 [opensc-pkcs11] card-piv.c:1372:piv_get_serial_nr_from_CHUI: returning with: 0 [opensc-pkcs11] pkcs15-piv.c:259:sc_pkcs15emu_piv_init: PIV-II adding objects... [opensc-pkcs11] pkcs15-piv.c:298:sc_pkcs15emu_piv_init: PIV-II adding certs... [opensc-pkcs11] pkcs15.c:1672:sc_pkcs15_read_file: called, path=0101cece, index=0, count=-1 [opensc-pkcs11] card.c:532:sc_select_file: called; type=2, path=0101cece [opensc-pkcs11] card-piv.c:1608:piv_select_file: called [opensc-pkcs11] card-piv.c:1580:piv_find_obj_by_containerid: str=0x0101 [opensc-pkcs11] card-piv.c:1665:piv_select_file: returning with: 0 [opensc-pkcs11] card.c:554:sc_select_file: returning with: 0 [opensc-pkcs11] card-piv.c:845:piv_read_binary: called [opensc-pkcs11] card-piv.c:619:piv_get_data: called [opensc-pkcs11] card-piv.c:620:piv_get_data: get_data: tag=3 [opensc-pkcs11] card-piv.c:287:piv_general_io: called [opensc-pkcs11] card-piv.c:291:piv_general_io: piv_general_io cb 3f ff 5 : 255 256 [opensc-pkcs11] card-piv.c:322:piv_general_io: calling sc_transmit_apdu flags=1 le=256, resplen=20000, resp=0xbf82457c [opensc-pkcs11] card-piv.c:329:piv_general_io: DEE r=0 apdu.resplen=1509 sw1=90 sw2=00 [opensc-pkcs11] card-piv.c:366:piv_general_io: DEE got buffer 0x8d9e000 len 1509 [opensc-pkcs11] card-piv.c:385:piv_general_io: returning with: 1509 [opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: 1509 [opensc-pkcs11] card-piv.c:876:piv_read_binary: DEE rbuf=0x8d9e000,rbuflen=1509, [opensc-pkcs11] card-piv.c:764:piv_handle_certificate_data: returning with: 2308 [opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: 2308 [opensc-pkcs11] pkcs15-cert.c:115:sc_pkcs15_read_certificate: called [opensc-pkcs11] pkcs15-cert.c:83:parse_x509_cert: X.509 certificate not found [opensc-pkcs11] pkcs15-piv.c:338:sc_pkcs15emu_piv_init: Failed to read/parse the certificate r=-1401 [opensc-pkcs11] pkcs15.c:1672:sc_pkcs15_read_file: called, path=0100cece, index=0, count=-1 [opensc-pkcs11] card.c:532:sc_select_file: called; type=2, path=0100cece [opensc-pkcs11] card-piv.c:1608:piv_select_file: called [opensc-pkcs11] card-piv.c:1580:piv_find_obj_by_containerid: str=0x0100 [opensc-pkcs11] card-piv.c:1665:piv_select_file: returning with: 0 [opensc-pkcs11] card.c:554:sc_select_file: returning with: 0 [opensc-pkcs11] card-piv.c:845:piv_read_binary: called [opensc-pkcs11] card-piv.c:619:piv_get_data: called [opensc-pkcs11] card-piv.c:620:piv_get_data: get_data: tag=7 [opensc-pkcs11] card-piv.c:287:piv_general_io: called [opensc-pkcs11] card-piv.c:291:piv_general_io: piv_general_io cb 3f ff 5 : 255 256 [opensc-pkcs11] card-piv.c:322:piv_general_io: calling sc_transmit_apdu flags=1 le=256, resplen=20000, resp=0xbf82457c [opensc-pkcs11] card-piv.c:329:piv_general_io: DEE r=0 apdu.resplen=1516 sw1=90 sw2=00 [opensc-pkcs11] card-piv.c:366:piv_general_io: DEE got buffer 0x8d9e908 len 1516 [opensc-pkcs11] card-piv.c:385:piv_general_io: returning with: 1516 [opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: 1516 [opensc-pkcs11] card-piv.c:876:piv_read_binary: DEE rbuf=0x8d9e908,rbuflen=1516, [opensc-pkcs11] card-piv.c:764:piv_handle_certificate_data: returning with: 2308 [opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: 2308 [opensc-pkcs11] pkcs15-cert.c:115:sc_pkcs15_read_certificate: called [opensc-pkcs11] pkcs15-cert.c:83:parse_x509_cert: X.509 certificate not found [opensc-pkcs11] pkcs15-piv.c:338:sc_pkcs15emu_piv_init: Failed to read/parse the certificate r=-1401 [opensc-pkcs11] pkcs15.c:1672:sc_pkcs15_read_file: called, path=0102cece, index=0, count=-1 [opensc-pkcs11] card.c:532:sc_select_file: called; type=2, path=0102cece [opensc-pkcs11] card-piv.c:1608:piv_select_file: called [opensc-pkcs11] card-piv.c:1580:piv_find_obj_by_containerid: str=0x0102 [opensc-pkcs11] card-piv.c:1665:piv_select_file: returning with: 0 [opensc-pkcs11] card.c:554:sc_select_file: returning with: 0 [opensc-pkcs11] card-piv.c:845:piv_read_binary: called [opensc-pkcs11] card-piv.c:619:piv_get_data: called [opensc-pkcs11] card-piv.c:620:piv_get_data: get_data: tag=8 [opensc-pkcs11] card-piv.c:287:piv_general_io: called [opensc-pkcs11] card-piv.c:291:piv_general_io: piv_general_io cb 3f ff 5 : 255 256 [opensc-pkcs11] card-piv.c:322:piv_general_io: calling sc_transmit_apdu flags=1 le=256, resplen=20000, resp=0xbf82457c [opensc-pkcs11] card-piv.c:329:piv_general_io: DEE r=0 apdu.resplen=8 sw1=90 sw2=00 [opensc-pkcs11] card-piv.c:366:piv_general_io: DEE got buffer 0x8d99c38 len 8 [opensc-pkcs11] card-piv.c:385:piv_general_io: returning with: 8 [opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: 8 [opensc-pkcs11] card-piv.c:876:piv_read_binary: DEE rbuf=0x8d99c38,rbuflen=8, [opensc-pkcs11] card-piv.c:752:piv_handle_certificate_data: returning with: Object not found [opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: Object not found [opensc-pkcs11] card.c:430:sc_read_binary: returning with: Object not found [opensc-pkcs11] pkcs15-piv.c:323:sc_pkcs15emu_piv_init: No cert found,i=2 [opensc-pkcs11] pkcs15.c:1672:sc_pkcs15_read_file: called, path=0500cece, index=0, count=-1 [opensc-pkcs11] card.c:532:sc_select_file: called; type=2, path=0500cece [opensc-pkcs11] card-piv.c:1608:piv_select_file: called [opensc-pkcs11] card-piv.c:1580:piv_find_obj_by_containerid: str=0x0500 [opensc-pkcs11] card-piv.c:1665:piv_select_file: returning with: 0 [opensc-pkcs11] card.c:554:sc_select_file: returning with: 0 [opensc-pkcs11] card-piv.c:845:piv_read_binary: called [opensc-pkcs11] card-piv.c:619:piv_get_data: called [opensc-pkcs11] card-piv.c:620:piv_get_data: get_data: tag=9 [opensc-pkcs11] card-piv.c:287:piv_general_io: called [opensc-pkcs11] card-piv.c:291:piv_general_io: piv_general_io cb 3f ff 5 : 255 256 [opensc-pkcs11] card-piv.c:322:piv_general_io: calling sc_transmit_apdu flags=1 le=256, resplen=20000, resp=0xbf82457c [opensc-pkcs11] card-piv.c:329:piv_general_io: DEE r=0 apdu.resplen=8 sw1=90 sw2=00 [opensc-pkcs11] card-piv.c:366:piv_general_io: DEE got buffer 0x8d99c38 len 8 [opensc-pkcs11] card-piv.c:385:piv_general_io: returning with: 8 [opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: 8 [opensc-pkcs11] card-piv.c:876:piv_read_binary: DEE rbuf=0x8d99c38,rbuflen=8, [opensc-pkcs11] card-piv.c:752:piv_handle_certificate_data: returning with: Object not found [opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: Object not found [opensc-pkcs11] card.c:430:sc_read_binary: returning with: Object not found [opensc-pkcs11] pkcs15-piv.c:323:sc_pkcs15emu_piv_init: No cert found,i=3 [opensc-pkcs11] pkcs15-piv.c:357:sc_pkcs15emu_piv_init: PIV-II adding pins... [opensc-pkcs11] pkcs15-piv.c:391:sc_pkcs15emu_piv_init: PIV-II adding pub keys... [opensc-pkcs11] pkcs15-piv.c:420:sc_pkcs15emu_piv_init: No cert for this pub key i=2 [opensc-pkcs11] pkcs15-pubkey.c:387:sc_pkcs15_read_pubkey: called [opensc-pkcs11] pkcs15.c:1672:sc_pkcs15_read_file: called, path=9d06, index=0, count=-1 [opensc-pkcs11] card.c:532:sc_select_file: called; type=2, path=9d06 [opensc-pkcs11] card-piv.c:1608:piv_select_file: called [opensc-pkcs11] card-piv.c:1580:piv_find_obj_by_containerid: str=0x9D06 [opensc-pkcs11] card-piv.c:1665:piv_select_file: returning with: 0 [opensc-pkcs11] card.c:554:sc_select_file: returning with: 0 [opensc-pkcs11] card-piv.c:845:piv_read_binary: called [opensc-pkcs11] card-piv.c:619:piv_get_data: called [opensc-pkcs11] card-piv.c:620:piv_get_data: get_data: tag=14 [opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: File not found [opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: File not found [opensc-pkcs11] card.c:430:sc_read_binary: returning with: File not found [opensc-pkcs11] pkcs15-pubkey.c:404:sc_pkcs15_read_pubkey: Failed to read public key file. [opensc-pkcs11] pkcs15-piv.c:426:sc_pkcs15emu_piv_init: READING PUB KEY r=-1201 [opensc-pkcs11] pkcs15-piv.c:420:sc_pkcs15emu_piv_init: No cert for this pub key i=3 [opensc-pkcs11] pkcs15-pubkey.c:387:sc_pkcs15_read_pubkey: called [opensc-pkcs11] pkcs15.c:1672:sc_pkcs15_read_file: called, path=9e06, index=0, count=-1 [opensc-pkcs11] card.c:532:sc_select_file: called; type=2, path=9e06 [opensc-pkcs11] card-piv.c:1608:piv_select_file: called [opensc-pkcs11] card-piv.c:1580:piv_find_obj_by_containerid: str=0x9E06 [opensc-pkcs11] card-piv.c:1665:piv_select_file: returning with: 0 [opensc-pkcs11] card.c:554:sc_select_file: returning with: 0 [opensc-pkcs11] card-piv.c:845:piv_read_binary: called [opensc-pkcs11] card-piv.c:619:piv_get_data: called [opensc-pkcs11] card-piv.c:620:piv_get_data: get_data: tag=15 [opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: File not found [opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: File not found [opensc-pkcs11] card.c:430:sc_read_binary: returning with: File not found [opensc-pkcs11] pkcs15-pubkey.c:404:sc_pkcs15_read_pubkey: Failed to read public key file. [opensc-pkcs11] pkcs15-piv.c:426:sc_pkcs15emu_piv_init: READING PUB KEY r=-1201 [opensc-pkcs11] pkcs15-piv.c:455:sc_pkcs15emu_piv_init: PIV-II adding private keys... [opensc-pkcs11] pkcs15-piv.c:490:sc_pkcs15emu_piv_init: returning with: 0 [opensc-pkcs11] framework-pkcs15.c:159:pkcs15_bind: Binding to PKCS#15, rc=0 [opensc-pkcs11] slot.c:148:card_detect: 0: Detected framework 0. Creating tokens. [opensc-pkcs11] framework-pkcs15.c:734:pkcs15_create_tokens: Found 2 authentication objects [opensc-pkcs11] framework-pkcs15.c:453:pkcs15_create_pkcs11_objects: Found 2 private keys [opensc-pkcs11] framework-pkcs15.c:453:pkcs15_create_pkcs11_objects: Found 2 public keys [opensc-pkcs11] pkcs15-pubkey.c:387:sc_pkcs15_read_pubkey: called [opensc-pkcs11] pkcs15.c:1672:sc_pkcs15_read_file: called, path=9a06, index=0, count=-1 [opensc-pkcs11] card.c:532:sc_select_file: called; type=2, path=9a06 [opensc-pkcs11] card-piv.c:1608:piv_select_file: called [opensc-pkcs11] card-piv.c:1580:piv_find_obj_by_containerid: str=0x9A06 [opensc-pkcs11] card-piv.c:1665:piv_select_file: returning with: 0 [opensc-pkcs11] card.c:554:sc_select_file: returning with: 0 [opensc-pkcs11] card-piv.c:845:piv_read_binary: called [opensc-pkcs11] card-piv.c:619:piv_get_data: called [opensc-pkcs11] card-piv.c:620:piv_get_data: get_data: tag=12 [opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: File not found [opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: File not found [opensc-pkcs11] card.c:430:sc_read_binary: returning with: File not found [opensc-pkcs11] pkcs15-pubkey.c:404:sc_pkcs15_read_pubkey: Failed to read public key file. [opensc-pkcs11] pkcs15-pubkey.c:387:sc_pkcs15_read_pubkey: called [opensc-pkcs11] pkcs15.c:1672:sc_pkcs15_read_file: called, path=9c06, index=0, count=-1 [opensc-pkcs11] card.c:532:sc_select_file: called; type=2, path=9c06 [opensc-pkcs11] card-piv.c:1608:piv_select_file: called [opensc-pkcs11] card-piv.c:1580:piv_find_obj_by_containerid: str=0x9C06 [opensc-pkcs11] card-piv.c:1665:piv_select_file: returning with: 0 [opensc-pkcs11] card.c:554:sc_select_file: returning with: 0 [opensc-pkcs11] card-piv.c:845:piv_read_binary: called [opensc-pkcs11] card-piv.c:619:piv_get_data: called [opensc-pkcs11] card-piv.c:620:piv_get_data: get_data: tag=13 [opensc-pkcs11] card-piv.c:723:piv_get_data: returning with: File not found [opensc-pkcs11] card-piv.c:924:piv_read_binary: returning with: File not found [opensc-pkcs11] card.c:430:sc_read_binary: returning with: File not found [opensc-pkcs11] pkcs15-pubkey.c:404:sc_pkcs15_read_pubkey: Failed to read public key file. [opensc-pkcs11] framework-pkcs15.c:453:pkcs15_create_pkcs11_objects: Found 0 certificates [opensc-pkcs11] framework-pkcs15.c:453:pkcs15_create_pkcs11_objects: Found 11 data objects [opensc-pkcs11] slot.c:235:slot_allocate: Allocated slot 0 [opensc-pkcs11] framework-pkcs15.c:693:pkcs15_init_slot: Initialized token 'PIV_II (PIV Card Holder pin)' [opensc-pkcs11] framework-pkcs15.c:800:pkcs15_create_tokens: Adding private key 0 to PIN 0 [opensc-pkcs11] framework-pkcs15.c:800:pkcs15_create_tokens: Adding private key 1 to PIN 0 [opensc-pkcs11] framework-pkcs15.c:804:pkcs15_create_tokens: Adding data object 8 to PIN 0 [opensc-pkcs11] framework-pkcs15.c:804:pkcs15_create_tokens: Adding data object 9 to PIN 0 [opensc-pkcs11] framework-pkcs15.c:804:pkcs15_create_tokens: Adding data object 10 to PIN 0 [opensc-pkcs11] framework-pkcs15.c:831:pkcs15_create_tokens: Object 4 was not seen previously [opensc-pkcs11] framework-pkcs15.c:831:pkcs15_create_tokens: Object 5 was not seen previously [opensc-pkcs11] framework-pkcs15.c:831:pkcs15_create_tokens: Object 6 was not seen previously [opensc-pkcs11] framework-pkcs15.c:831:pkcs15_create_tokens: Object 7 was not seen previously [opensc-pkcs11] framework-pkcs15.c:831:pkcs15_create_tokens: Object 11 was not seen previously [opensc-pkcs11] framework-pkcs15.c:831:pkcs15_create_tokens: Object 12 was not seen previously [opensc-pkcs11] framework-pkcs15.c:831:pkcs15_create_tokens: Object 13 was not seen previously [opensc-pkcs11] framework-pkcs15.c:831:pkcs15_create_tokens: Object 14 was not seen previously [opensc-pkcs11] framework-pkcs15.c:851:pkcs15_create_tokens: All tokens created [opensc-pkcs11] slot.c:156:card_detect: 0: Detection ended [opensc-pkcs11] pkcs11-global.c:232:C_Initialize: C_Initialize: result = 0 [opensc-pkcs11] pkcs11-global.c:349:C_GetSlotList: Getting slot listing [opensc-pkcs11] reader-pcsc.c:879:pcsc_detect_readers: Probing pcsc readers [opensc-pkcs11] slot.c:86:card_detect: 0: Detecting smart card [opensc-pkcs11] sc.c:196:sc_detect_card_presence: called [opensc-pkcs11] sc.c:201:sc_detect_card_presence: returning with: 1 [opensc-pkcs11] slot.c:156:card_detect: 0: Detection ended [opensc-pkcs11] pkcs11-global.c:365:C_GetSlotList: was only a size inquiry (1) [opensc-pkcs11] pkcs11-global.c:349:C_GetSlotList: Getting slot listing [opensc-pkcs11] slot.c:86:card_detect: 0: Detecting smart card [opensc-pkcs11] sc.c:196:sc_detect_card_presence: called [opensc-pkcs11] sc.c:201:sc_detect_card_presence: returning with: 1 [opensc-pkcs11] slot.c:156:card_detect: 0: Detection ended [opensc-pkcs11] pkcs11-global.c:382:C_GetSlotList: returned 1 slots Available slots: Slot 0 [opensc-pkcs11] pkcs11-global.c:435:C_GetSlotInfo: Getting info about slot 0 [opensc-pkcs11] slot.c:86:card_detect: 0: Detecting smart card [opensc-pkcs11] sc.c:196:sc_detect_card_presence: called [opensc-pkcs11] sc.c:201:sc_detect_card_presence: returning with: 1 [opensc-pkcs11] slot.c:156:card_detect: 0: Detection ended OMNIKEY CardMan? 3x21 00 00 [opensc-pkcs11] pkcs11-global.c:471:C_GetTokenInfo: Getting info about token in slot 0
[opensc-pkcs11] pkcs11-global.c:263:C_Finalize: Shutting down Cryptoki [opensc-pkcs11] slot.c:188:card_removed: 0: smart card removed [opensc-pkcs11] pkcs11-session.c:115:sc_pkcs11_close_all_sessions: C_CloseAllSessions(slot 0). [opensc-pkcs11] pkcs15.c:814:sc_pkcs15_unbind: called [opensc-pkcs11] card.c:236:sc_disconnect_card: called [opensc-pkcs11] card-piv.c:1674:piv_finish: called [opensc-pkcs11] card.c:251:sc_disconnect_card: returning with: 0 [opensc-pkcs11] ctx.c:760:sc_release_context: called