How To Install softhsm on Fedora 36
Introduction
In this tutorial we learn how to install softhsm on Fedora 36.
What is softhsm
OpenDNSSEC is providing a software implementation of a generic cryptographic device with a PKCS#11 interface, the SoftHSM. SoftHSM is designed to meet the requirements of OpenDNSSEC, but can also work together with other cryptographic products because of the PKCS#11 interface.
We can use yum or dnf to install softhsm on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install softhsm.
Install softhsm on Fedora 36 Using dnf
Update yum database with dnf using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install softhsm using dnf by running the following command:
sudo dnf -y install softhsm
Install softhsm on Fedora 36 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install softhsm using yum by running the following command:
sudo yum -y install softhsm
How To Uninstall softhsm on Fedora 36
To uninstall only the softhsm package we can use the following command:
sudo dnf remove softhsm
softhsm Package Contents on Fedora 36
/etc/softhsm2.conf
/usr/bin/softhsm2-dump-file
/usr/bin/softhsm2-keyconv
/usr/bin/softhsm2-migrate
/usr/bin/softhsm2-util
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/d34061006d2487abb9faaf2dc03307b0f7aee9
/usr/lib/.build-id/44
/usr/lib/.build-id/44/fd9d6543266a324463c12e081d51b9ab643301
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/0f7696978416786914dd09499ef25b57127007
/usr/lib/.build-id/73
/usr/lib/.build-id/73/2e83d0612af959da296aab9a24797a4ea29b7e
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/949d79c82b69cff029c46034af56dba633127f
/usr/lib64/libsofthsm2.so
/usr/lib64/pkcs11/libsofthsm2.so
/usr/lib64/softhsm
/usr/lib64/softhsm/libsofthsm.so
/usr/share/doc/softhsm
/usr/share/doc/softhsm/LICENSE
/usr/share/doc/softhsm/NEWS
/usr/share/doc/softhsm/README.md
/usr/share/man/man1/softhsm2-dump-file.1.gz
/usr/share/man/man1/softhsm2-keyconv.1.gz
/usr/share/man/man1/softhsm2-migrate.1.gz
/usr/share/man/man1/softhsm2-util.1.gz
/usr/share/man/man5/softhsm2.conf.5.gz
/usr/share/p11-kit/modules/softhsm2.module
/var/lib/softhsm
/var/lib/softhsm/tokens
References
Summary
In this tutorial we learn how to install softhsm on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).