-
Initialise a new token
$ softhsm2-util --init-token --slot 0 --label "My First Token" === SO PIN (4-255 characters) === Please enter SO PIN: **** Please reenter SO PIN: **** === User PIN (4-255 characters) === Please enter user PIN: **** Please reenter user PIN: **** The token has been initialized and is reassigned to slot 384541823
-
Test the module
$ pkcs11-tool --module /usr/local/lib/softhsm/libsofthsm2.so -l -t Using slot 0 with a present token (0x16eba47f) Logging in to "My First Token". Please enter User PIN: C_SeedRandom() and C_GenerateRandom(): seems to be OK Digests: all 4 digest functions seem to work MD5: OK SHA-1: OK Signatures: not implemented Verify (currently only for RSA) No private key found for testing Unwrap: not implemented Decryption (currently only for RSA) No errors
mkdir build
cd build
cmake .. && make
make install