--- title: pkcs11 slug: Mozilla/Add-ons/WebExtensions/API/pkcs11 translation_of: Mozilla/Add-ons/WebExtensions/API/pkcs11 ---
{{AddonSidebar}}

pkcs11 API は拡張機能にセキュリティモジュール PKCS #11 の列挙を可能とし、キーの元と証明書としてブラウザーからアクセスできるようにします。

このAPI を使うには "pkcs11" パーミッションが必要です。

Provisioning PKCS #11 modules

There are two environmental prerequisites for using this API:

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. Note, though, that 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.

関数

{{WebExtAPIRef("pkcs11.getModuleSlots()")}}
For each slot in a module, get its name and whether it contains a token.
{{WebExtAPIRef("pkcs11.installModule()")}}
Installs the named PKCS #11 module.
{{WebExtAPIRef("pkcs11.isModuleInstalled()")}}
Checks whether the named PKCS #11 module is installed.
{{WebExtAPIRef("pkcs11.uninstallModule()")}}
Uninstalls the named PKCS #11 module.

ブラウザ実装状況

{{Compat("webextensions.api.pkcs11", 1, 1)}} {{WebExtExamples("h2")}}