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)
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). 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 ? Jan Just Keijser System Integrator Nikhef / Amsterdam Eddy Nigg (StartCom Ltd.) wrote: > Guess that's a call for Nils ;-) > > BTW, I quickly tested with version 4.2B and did *not* receive this error. > > Vladislav Kurz wrote: >> On Sun, 10 Jun 2007, Eddy Nigg (StartCom Ltd.) wrote: >> >> >>> Try this patch (not fully tested yet). Apply to current version or trunk. >>> >> >> Thanks for the patch, i tried it with trunk. opensc-tool recognizes the >> card, I can expore it with opensc-explorer and see the DF 6666 and >> subdirectories, but I can't initialize it with pkcs15-init. >> >> $ /usr/local/bin/pkcs15-init -C >> winscard_clnt.c:3232:SCardCheckDaemonAvailability() PCSC Not Running >> [pkcs15-init] profile.c:303:sc_profile_load: you need to set profile_dir >> in your config file. >> [pkcs15-init] pkcs15-lib.c:353:sc_pkcs15init_bind: Failed to load profile: >> File not found >> Couldn't bind to the card: File not found >> >> In my config there is >> profile_dir = /usr/local/share/opensc; >> and there are files cardos.profile, pkcs15.profile and others in >> /usr/local/share/opensc >> >> I wonder whether I should add something extra into my config, or if some >> dubug output would be of any help >> >> $ /usr/local/bin/pkcs15-init -C -vv >> winscard_clnt.c:3232:SCardCheckDaemonAvailability() PCSC Not Running >> [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-cardos.c:90:cardos_match_card: checking cardos version >> ... >> [pkcs15-init] reader-openct.c:431:openct_reader_lock: called >> [pkcs15-init] reader-openct.c:458:openct_reader_unlock: called >> [pkcs15-init] card-cardos.c:108:cardos_match_card: found cardos v4.3b or >> higher >> [pkcs15-init] card.c:221:sc_connect_card: card info: CardOS M4, 1004, 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-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: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] 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:303:sc_profile_load: you need to set profile_dir >> in your config file. >> [pkcs15-init] pkcs15-lib.c:353:sc_pkcs15init_bind: Failed to load profile: >> File not found >> Couldn't bind to the card: File not found >> >> >> What file is it looking for? >> >> Regards >> Vladislav Kurz >> >> >> > > ------------------------------------------------------------------------ > > _______________________________________________ > opensc-devel mailing list > opensc-devel@lists.opensc-project.org > http://www.opensc-project.org/mailman/listinfo/opensc-devel _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel