## Configuration File 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. ## Sample Configuration ``` directories.tokendir = /var/lib/softhsm/tokens/ objectstore.backend = file ``` - `directories.tokendir`: Directory where tokens are stored - `objectstore.backend`: Storage backend (e.g., `file` or `db`) ## Creating the Token Directory Create the directory specified in your config file before initializing tokens: ```sh mkdir ``` ## Log Level 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.