Installing PKCS11 Modules Using nsIPKCS11
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");