The pkcs11
API enables an extension to enumerate PKCS #11 security modules and to make them accessible to the browser as sources of keys and certificates.
To use this API you need to have the "pkcs11" permission.
The pkcs11
API enables an extension to enumerate PKCS #11 security modules and to make them accessible to the browser as sources of keys and certificates.
To use this API you need to have the "pkcs11" permission.
Perform the following steps:
Warning: Be careful about using international characters as there is currently a bug in Firefox where international characters may cause problems.
Note: Starting with Firefox 58, extensions can use this API to enumerate PKCS #11 modules and make them accessible to the browser as sources of keys and certificates.
There are two environmental prerequisites for using this API:
PKCS #11
modules must be installed on the user's computerPKCS #11
module, there must be a native manifest file that enables the browser to locate the module.Most probably, the user or device administrator would install the PKCS #11
module, and its installer would install the native manifest file at the same time.
However, the module and manifest can't be installed as part of the extension's own installation process.
For details about the manifest file's contents and location, see Native manifests.
pkcs11.getModuleSlots()
For each slot in a module, get its name and whether it contains a token.
pkcs11.installModule()
Installs the named PKCS #11 module.
pkcs11.isModuleInstalled()
Checks whether the named PKCS #11 module is installed.
pkcs11.uninstallModule()
Uninstalls the named PKCS #11 module.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
getModuleSlots |
No | No | 58 | ? | No | No | ? | ? | No | ? | No | ? |
installModule |
No | No | 58 | ? | No | No | ? | ? | No | ? | No | ? |
isModuleInstalled |
No | No | 58 | ? | No | No | ? | ? | No | ? | No | ? |
uninstallModule |
No | No | 58 | ? | No | No | ? | ? | No | ? | No | ? |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/pkcs11