Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

PKCS11 Module Installation

PKCS11 modules are external modules which provide access to smart-card readers, biometric security devices, or external certificate stores. There are two methods for installing PKCS11 modules into Firefox. Users can use the preferences dialog to install or remove PKCS11 module. Extensions can programmatically manage PKCS11 modules using the nsIPKCS11 programming interface.

The information in this article is specific to Firefox 3.5 and newer. Older versions of Firefox may support the window.pkcs11 property for installing PKCS11 modules.

Using the Firefox Preferences Dialog to Install PKCS11 Modules

  1. Save the PKCS11 module to a permanent location on your local computer
  2. Open the Firefox preferences dialog. Choose "Advanced" > "Encryption" > "Security Devices"
  3. Choose "Load"
  4. Enter a name for the security module, such as "My Client Database". NOTE: there is currently a bug in Firefox where international characters may cause problems.
  5. Choose "Browse..." to find the location of the PKCS11 module on your local computer, and choose "OK" when done.

Installing PKCS11 Modules Using nsIPKCS11

 Extensions can use the nsIPKCS11 interface 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");

 

Document Tags and Contributors

Tags: 
 Last updated by: fkiefer,