Skip to content

Problem with "Integrating with SoftHSMv2" manual #488

@ldc77shirt

Description

@ldc77shirt

I installed SoftHSMv2 in UBUNTU 24.04LTS as it is writen in the manual with the commands.

apt install -y softhsm2
softhsm2-util --init-token --label Cascade --pin 1234 --so-pin 1234 --free

After this, i was trying to start the kmip2pkcs11 service with the command writen in the manual

sed -i -e 's|^lib_path = .+|lib_path = "/usr/lib/softhsm/libsofthsm2.so"|' /etc/kmip2pkcs11/config.toml
chown -R kmip2pkcs11: /var/lib/softhsm
systemctl start kmip2pkcs11

But the service didn't start.

kmip2pkcs11 needs permission read-write for the configuration file of softhsm2, so i added the command "chown -R kmip2pkcs11:softhsm /etc/softshm"

sed -i -e 's|^lib_path = .+|lib_path = "/usr/lib/softhsm/libsofthsm2.so"|' /etc/kmip2pkcs11/config.toml
chown -R kmip2pkcs11:softhsm /etc/softhsm
chown -R kmip2pkcs11: /var/lib/softhsm
systemctl start kmip2pkcs11

Then the service was started.

Let me known if it's correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions