Dilip Shenoy - 2023-05-09

Hi,
i am not able to see softhsm realted slots/tokens on ejbca webui. Ejbca is running as docker container
(docker image from keyfactor). softhsm and opensc is installed inside same docker container.

i have created softhsm token using below command:

softhsm2-util --init-token --free --label testslot6

then i created a key pair using pkcs11-tool command:

pkcs11-tool --module /usr/lib64/softhsm/libsofthsm.so --slot 0x2a63aa6b --label testslot6 -k --key-type rsa:4096 -l

Output :

Logging in to "testslot6".
Please enter User PIN:
Key pair generated:

when i go to ejbca admin ui page i don't see this crypto-token line item in the ui page under
CA Functions > Crypto Tokens

also i am not able to create a new SoftHSM PKCS#11 crypto token from UI.

in web.properties file i have added
cyptotoken.p11.lib.91.name = SoftHSM
cryptotoken.p11.lib.91.file = /usr/lib64/softhsm/libsofthsm.so