For some reason when building opensc from git master, it doesn't see my Entersafe token in my Feitan 310 card reader...
In fact it comes down to using a different pkcs11-tool binary. The one in git master is located in /data/build/opensc and when I use it to load the OpenSC PKCS#11 module I don't see any slots. In both cases I use the newly built module. Strange. [stef@stef-desktop gnome-keyring]$ pkcs11-tool --module /data/build/opensc/lib/pkcs11/opensc-pkcs11.so --list-slots Available slots: Slot 0 (0xffffffffffffffff): Virtual hotplug slot (empty) Slot 1 (0x1): Feitian SCR310 01 00 token label: My Smartcard (User PIN) token manuf: EnterSafe token model: PKCS#15 token flags: rng, login required, PIN initialized, token initialized serial num : 2823150314090610 [stef@stef-desktop gnome-keyring]$ /data/build/opensc/bin/pkcs11-tool --module /data/build/opensc/lib/pkcs11/opensc-pkcs11.so --list-slots Available slots: Slot 0 (0xffffffffffffffff): Virtual hotplug slot (empty) Slot 1 (0x1): Feitian SCR310 01 00 (empty) Here's the debug output I see when loading the slot fails, using the new pkcs11-tool: reader-pcsc.c:243:pcsc_transmit: reader 'Feitian SCR310 01 00' apdu.c:184:sc_apdu_log: Outgoing APDU data [ 5 bytes] ===================================== 00 B2 01 04 00 ..... ====================================================================== reader-pcsc.c:176:pcsc_internal_transmit: called apdu.c:184:sc_apdu_log: Incoming APDU data [ 2 bytes] ===================================== 69 81 i. ====================================================================== card.c:330:sc_unlock: called iso7816.c:103:iso7816_check_sw: Command incompatible with file structure iso7816.c:173:iso7816_read_record: returning with: -1200 (Card command failed) card.c:652:sc_read_record: returning with: -1200 (Card command failed) dir.c:199:sc_enum_apps: read_record() failed: -1200 (Card command failed) pkcs15.c:730:sc_pkcs15_bind_internal: unable to enumerate apps: -1200 (Card command failed) pkcs15-syn.c:125:sc_pkcs15_bind_synthetic: called pkcs15-syn.c:166:sc_pkcs15_bind_synthetic: no emulator list in config file, trying all builtin emulators pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying westcos pkcs15-westcos.c:258:sc_pkcs15emu_westcos_init_ex: sc_pkcs15_init_func_ex westcos pkcs15-westcos.c:245:westcos_detect_card: westcos_detect_card (Unsupported card) pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying openpgp pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying infocamere pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying starcert pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying tcos pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying esteid pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying itacns pkcs15-itacns.c:857:sc_pkcs15emu_itacns_init_ex: called pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying postecert pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying PIV-II pkcs15-piv.c:1005:sc_pkcs15emu_piv_init_ex: called pkcs15-piv.c:231:piv_detect_card: called pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying gemsafeGPK pkcs15-gemsafeGPK.c:513:sc_pkcs15emu_gemsafeGPK_init_ex: Entering sc_pkcs15emu_gemsafeGPK_init_ex pkcs15-gemsafeGPK.c:166:gemsafe_detect_card: called pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying gemsafeV1 pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying actalis pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying atrust-acos pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying tccardos pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying entersafe pkcs15-esinit.c:80:sc_pkcs15emu_entersafe_init_ex: called pkcs15-esinit.c:36:entersafe_detect_card: called pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying pteid pkcs15-syn.c:168:sc_pkcs15_bind_synthetic: trying oberthur pkcs15-oberthur.c:1045:sc_pkcs15emu_oberthur_init_ex: called pkcs15-oberthur.c:1032:oberthur_detect_card: called pkcs15-oberthur.c:1034:oberthur_detect_card: returning with: -1413 (Unsupported card) pkcs15-oberthur.c:1055:sc_pkcs15emu_oberthur_init_ex: returning with: -1413 (Unsupported card) pkcs15-syn.c:177:sc_pkcs15_bind_synthetic: searching for 'emulate foo { ... }' blocks card.c:330:sc_unlock: called reader-pcsc.c:548:pcsc_unlock: called pkcs15.c:963:sc_pkcs15_bind: returning with: -1413 (Unsupported card) framework-pkcs15.c:172:pkcs15_bind: sc_pkcs15_bind failed: -1413 misc.c:59:sc_to_cryptoki_error_common: libopensc return value: -1413 (Unsupported card) Thanks for any help. Cheers, Stef _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel