火狐浏览器 自动载入P11模块

来源:互联网 发布:mysql sp help 编辑:程序博客网 时间:2024/06/13 17:41

 

Installing PKCS11 Modules Using nsIPKCS11
 Extensions can use the nsIPKCS11 interface security/manager/ssl/public/nsIPKCS11.idl to install PKCS11 modules:

const nsIPKCS11 = Components.interfaces.nsIPKCS11;
const nsPKCS11ContractID = "@mozilla.org/security/pkcs11;1";


var PKCS11 = Components.classes[nsPKCS11ContractID].getService(nsIPKCS11);
PKCS11.addModule("Custom Module Name", "/path/to/module.dll");

原创粉丝点击