Install SoftHSMv2
This example uses rust-cryptoki
Clone the repo. To run the test:
mkdir /tmp/tokens
echo "directories.tokendir = /tmp/tokens" > /tmp/softhsm2.conf
export PKCS11_SOFTHSM2_MODULE="/usr/lib/softhsm/libsofthsm2.so"
export SOFTHSM2_CONF="/tmp/softhsm2.conf"
Set PKCS11_SOFTHSM2_MODULE
according to the location of the softhsm pkcs11 library.
Then run: cargo run
Several assertions fail: track softhsm/SoftHSMv2#782