Hi, I tried keypair generation using pkcs11-tool in our card. The operation was failing. I debugged the code and found that below code in the function sc_pkcs15init_generate_key of opensc-pkcs11 module is failing. ================================================= if (!check_key_compatibility(p15card, &keygen_args->prkey_args.key, keygen_args->prkey_args.x509_usage, keybits, SC_ALGORITHM_ONBOARD_KEY_GEN)) return SC_ERROR_NOT_SUPPORTED; ================================================== With my card check_key_compatibility function is returning 0 and so sc_pkcs15init_generate_key function is SC_ERROR_NOT_SUPPORTED error code.
Can you please tell me whether it is error in opensc-pkcs11 module or it is Function as intended. I need some other help. I am developing external card driver to make opensc module to work with our card. I am currently emulating pkcs#15 structures. Will it be possible to provided operations like importing of key pair and certificate to the card. Since pkcs#15 structure is emulated i want to know whether there will be any problem in providing importing/generation of keypair and certificate to card. Is there any currently supported card following this approach. Regards, Kamal. ____________________________________________________________________________________ Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. http://new.toolbar.yahoo.com/toolbar/features/mail/index.php _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel