I'm trying to automate authentication with smart cards for a web app for which I'm required to use Selenium. When I create a new driver for Firefox, the browser doesn't have the PKCS#11 dll loaded for the smart card I'm using. Is there any way I can add this through a program/script of some sort? I've found a script for the same at http://support.gemalto.com/index.php?id=how_can_register_the_pkcs11 , but it's for an older version of Firefox and is not supported anymore.
PS: I'm using C# as well as PowerShell.U can use modutil functions in your code and add to secmod.db database.
U can use function as NSS_Initialize(moduleSpec, "", "", NULL , 0); where modulespec is path to your secmod.db database. and then use SECMOD_AddNewModule function to add to database.
还有https://github.com/open-eid/firefox-pkcs11-loader但这也是濒危物种之一,因为删除了使用的 API-s。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.