Skip to content
Mehtab edited this page Aug 11, 2025 · 2 revisions

Initializing Tokens

To initialize a new token:

softhsm2-util --init-token --slot 0 --label "MyToken"

You will be prompted for a Security Officer (SO) PIN and a user PIN.

Listing Tokens

To list available tokens and slots:

softhsm2-util --show-slots

Using with PKCS#11 Applications

You can use SoftHSMv2 as a PKCS#11 provider with compatible applications (e.g., OpenSSL, OpenSC).

Environment Variables

  • SOFTHSM2_CONF: Path to the configuration file (default: /etc/softhsm2.conf)

More Information

See the Configuration page for details on setting up the config file.

Clone this wiki locally