>> - When Firefox import certificate, which C_* functions in PKCS#11 module 
>> will be called?
>> - What is the action flow from the C_* functions in PKCS#11 to the driver?

I suggest you having a look at https://developer.mozilla.org/en/PKCS11_Implement

But probably pkcs11-spy and "on the fly" developing will be easier.
And remember CKA_ID for mozilla is public key hash :)

>> - Currently, after select *.p12 file, Firefox automatically assume the
>> destination as Software Security Device (SSD), instead of asking me
>> where to import (SSD or Smartcard...).

AFAIK, If the card is not present, it automatically uses softoken, but
if a card is present and is not read-only, it shows a dialog to
select.

>> There may be due to something
>> missing in the PKCS-card_driver code. Can you point me what I need to
>> implement to make Firefox know that "there are another place to import
>> than the built-in SSD"?

Anyhow, ask on dev-tech-cry...@lists.mozilla.org ;)
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to