To change the SoftHSM cryptographic storage User / SO pin, assuming that you already know the existing pin.
SO pin:pkcs11-tool --module /usr/lib64/pkcs11/libsofthsm2.so --login --login-type so --change-pin
User pin:pkcs11-tool --module /usr/lib64/pkcs11/libsofthsm2.so --login --login-type user --change-pin
* replace the –module value with the path to libsofthsm2.so
for a different slot use --slot <slot_id>
, you could get slot info from: softhsm2-util --show-slot
Leave a Reply