Hi Eddy, hmmm I was hoping to get cross-platform cross-software pkcs11 support to work. However, pkcs15-init also fails on me, BTW:
./pkcs15-init -C -v -v -v [pkcs15-init] sc.c:196:sc_detect_card_presence: called [pkcs15-init] reader-openct.c:207:openct_reader_detect_card_presence: called [pkcs15-init] sc.c:201:sc_detect_card_presence: returning with: 1 Connecting to card in reader Aladdin eToken PRO 64k... [pkcs15-init] card.c:110:sc_connect_card: called [pkcs15-init] reader-openct.c:231:openct_reader_connect: called [pkcs15-init] card.c:221:sc_connect_card: card info: CardOS M4, -1, 0x0 [pkcs15-init] card.c:222:sc_connect_card: returning with: 0 Using card driver Siemens CardOS. [pkcs15-init] reader-openct.c:431:openct_reader_lock: called [pkcs15-init] card.c:668:sc_card_ctl: called [pkcs15-init] card-cardos.c:901:cardos_lifecycle_set: called [pkcs15-init] card-cardos.c:855:cardos_lifecycle_get: called [pkcs15-init] card-cardos.c:889:cardos_lifecycle_get: returning with: 0 [pkcs15-init] card.c:678:sc_card_ctl: returning with: 0 [pkcs15-init] card.c:532:sc_select_file: called; type=2, path=3f0050154946 [pkcs15-init] card-cardos.c:434:cardos_select_file: called [pkcs15-init] card-cardos.c:262:cardos_check_sw: file not found [pkcs15-init] iso7816.c:464:iso7816_select_file: returning with: -1201 [pkcs15-init] card-cardos.c:438:cardos_select_file: returning with: -1201 [pkcs15-init] card.c:554:sc_select_file: returning with: -1201 [pkcs15-init] profile.c:317:sc_profile_load: Trying profile file /usr/share/opensc/pkcs15.profile [pkcs15-init] profile.c:325:sc_profile_load: profile /usr/share/opensc/pkcs15.profile loaded ok [pkcs15-init] profile.c:317:sc_profile_load: Trying profile file /usr/share/opensc/cardos.profile [pkcs15-init] profile.c:325:sc_profile_load: profile /usr/share/opensc/cardos.profile loaded ok About to create PKCS #15 meta structure. New Security Officer PIN (Optional - press return for no PIN). Please enter Security Officer PIN: [pkcs15-init] card.c:532:sc_select_file: called; type=2, path=3f00 [pkcs15-init] card-cardos.c:434:cardos_select_file: called [pkcs15-init] card-cardos.c:438:cardos_select_file: returning with: 0 [pkcs15-init] card.c:554:sc_select_file: returning with: 0 [pkcs15-init] pkcs15-lib.c:3244:sc_pkcs15init_authenticate: path=3f00, op=3 [pkcs15-init] card.c:668:sc_card_ctl: called [pkcs15-init] card-cardos.c:901:cardos_lifecycle_set: called [pkcs15-init] card-cardos.c:855:cardos_lifecycle_get: called [pkcs15-init] card-cardos.c:889:cardos_lifecycle_get: returning with: 0 [pkcs15-init] card.c:678:sc_card_ctl: returning with: 0 [pkcs15-init] card.c:362:sc_create_file: called; type=2, path=3f005015, size=4096 [pkcs15-init] card-cardos.c:645:cardos_create_file: called [pkcs15-init] card.c:367:sc_create_file: returning with: Not supported Failed to create PKCS #15 meta structure: Not supported [pkcs15-init] reader-openct.c:458:openct_reader_unlock: called [pkcs15-init] card.c:236:sc_disconnect_card: called [pkcs15-init] reader-openct.c:280:openct_reader_disconnect: called [pkcs15-init] card.c:251:sc_disconnect_card: returning with: 0 [pkcs15-init] ctx.c:736:sc_release_context: called [pkcs15-init] reader-openct.c:180:openct_reader_release: called [pkcs15-init] reader-openct.c:180:openct_reader_release: called [pkcs15-init] reader-openct.c:180:openct_reader_release: called [pkcs15-init] reader-openct.c:180:openct_reader_release: called [pkcs15-init] reader-openct.c:180:openct_reader_release: called [pkcs15-init] reader-openct.c:165:openct_reader_finish: called cheers, Jan Just Keijser System Integrator Nikhef / Amsterdam Eddy Nigg (StartCom Ltd.) wrote: > Hi Jan, > > Jan Just Keijser wrote: >> that's a very interesting patch ! >> I've been trying to get a similar eToken PRO (32K) to work and ended up >> using the Aladdin RTE software. My eToken PRO also lists '4.2B' but the >> problem lies/lied with the OS version >> OS Version: 200.9 (unknown Version) >> > Just for the record, the patch was provided to me by Nils... >> with your patch the 'opensc-tool' and 'opensc-explorer' commands are >> finally working *BUT* I still cannot see any certificates that I have >> stored on the card (using the Windows Aladdin RTE 3.65 software). > They are not compatible with OpenSC pkcs15. You can however use both > of them side to side, but you'll never "see" each others certificate. > But concerning your error below, perhaps you must initialize the token > first with "pkcs15-init -C"? Is this what you did? > >> Also, >> pkcs11-tool still gives me errors: >> >> ./pkcs11-tool -L >> [opensc-pkcs11] card-cardos.c:262:cardos_check_sw: file not found >> [opensc-pkcs11] iso7816.c:459:iso7816_select_file: returning with: File >> not found >> [opensc-pkcs11] card-cardos.c:438:cardos_select_file: returning with: >> File not found >> [opensc-pkcs11] card.c:554:sc_select_file: returning with: File not found >> [opensc-pkcs11] pkcs15-postecert.c:337:sc_pkcs15emu_postecert_init: >> Failed to initialize Postecert and Cnipa emulation: Unsupported card >> [opensc-pkcs11] card-cardos.c:262:cardos_check_sw: file not found >> [opensc-pkcs11] iso7816.c:459:iso7816_select_file: returning with: File >> not found >> [opensc-pkcs11] card-cardos.c:438:cardos_select_file: returning with: >> File not found >> [opensc-pkcs11] card.c:554:sc_select_file: returning with: File not found >> [opensc-pkcs11] card-cardos.c:262:cardos_check_sw: file not found >> [opensc-pkcs11] iso7816.c:464:iso7816_select_file: returning with: File >> not found >> [opensc-pkcs11] card-cardos.c:438:cardos_select_file: returning with: >> File not found >> [opensc-pkcs11] card.c:554:sc_select_file: returning with: File not found >> [opensc-pkcs11] pkcs15.c:755:sc_pkcs15_bind: returning with: Unsupported >> card >> Available slots: >> Slot 0 (empty) >> Slot 1 (empty) >> Slot 2 (empty) >> Slot 3 (empty) >> Slot 4 (empty) >> Slot 5 (empty) >> Slot 6 (empty) >> Slot 7 (empty) >> >> any ideas ? >> >> _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel