-
Notifications
You must be signed in to change notification settings - Fork 386
Configuration
Mehtab edited this page Aug 11, 2025
·
2 revisions
The default configuration file is located at:
- Linux/macOS:
/etc/softhsm2.conf - Windows:
%ALLUSERSPROFILE%\softhsm2.conf
You can override the location by setting the SOFTHSM2_CONF environment variable.
directories.tokendir = /var/lib/softhsm/tokens/
objectstore.backend = file
-
directories.tokendir: Directory where tokens are stored -
objectstore.backend: Storage backend (e.g.,fileordb)
Create the directory specified in your config file before initializing tokens:
mkdir <token_dir>Log information is sent to syslog (Linux/macOS) or the Windows event log. The log level is set in the configuration file. Each log event is prepended with the source file name and line number.