Hi ! I have a pkcs#11 module installed on my mozilla build that I want to use to access my smart card via pcsc-lite. That module and the card reader are properly working as I can see the certificates stored in the smart card via "Manage Certificates...".
I am developing a plugin that needs to list the certificates that exists in: - default certificate database - any pkcs#11 module I use "PK11_GetAllTokens" to list all the modules. The first strange thing I notice is that: - I use "PK11_GetSlotName" and "PK11_GetTokenName" to print some information of the module - If I use then those names as input to "PK11_FindSlotByName", then I get a null pointer. Why ? Then, I am confused with one thing: - nss is not delivered with mozilla. You have to build it yourself - I am, instead of nss, using libpipnss.so, that I load dynamically (dlopen...) in my plugin. - And I do so because I find contradictory information about the public functions published in mozillas nss documentation, and the functions that are used in the delivered examples or answers to questions in this newsgroup. I would like to know: - what functions are exported via libpipnss.so - what functions are exported via nss - is it a bad idea using libpipnss when the functions I need are actually in nss ? How to come around this if nss is not delivered ? And then, the reason of this mail: how can I get the certificates that are stored in a smart card ? /R
