2012/5/16 Nguyễn Hồng Quân <quanngu...@mbm.vn>:
> Hello all,

Hello,

> I'm supplementing OpenPGP card support for OpenSC.
> I did some changes in OpenPGP driver and PKCS15 interface to make
> Firefox and Thunderbird read the X.509 certificate stored in the OpenPGP
> card (succeed). Now I want to make Firefox to import certificate to
> OpenPGP card (I implemented write support for OpenPGP driver already), I
> have some question to need your help:
>
> - 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?
> - 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...). 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"?

You should use the pkcs11-spy tool [1] provided with OpenSC. It will
display all the C_* calls made by firefox. So you will know what to
implement to support what you want.

Bye

[1] https://www.opensc-project.org/opensc/browser/OpenSC/src/pkcs11/pkcs11-spy.c

-- 
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to