SoftHSM2
Installing SoftHSM2
Follow the instructions at https://github.com/softhsm/SoftHSMv2.
When running on a Linux system, you can install SoftHSM2 using the package manager. For example, on Ubuntu, you can run:
The resulting slot number may be completely different from 0, so you should check the output of the command:
and always use the DECIMAL slot number in the kms.toml file or when referencing HSM objects using the slot id.
Set the SO and User PIN to 12345678 or update the kms.toml file accordingly.
Running the KMS server
Use the provided kms.toml file to run the KMS server with the softhsm2 PKCS#11 library.
From the KMS root directory, run the following command:
COSMIAN_KMS_CONF=crate/hsm/softhsm2/kms.toml