How To Install softhsm on Fedora 34
Introduction
In this tutorial we learn how to install softhsm
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install softhsm.
Install softhsm on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install softhsm
using dnf
by running the following command:
sudo dnf -y install softhsm
Install softhsm on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the softhsm
package we can use the following command:
sudo dnf remove softhsm
softhsm Package Contents on Fedora 34
/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/26
/usr/lib/.build-id/26/7c01faa7b707baa623c22b67589cb9e979640e
/usr/lib/.build-id/42
/usr/lib/.build-id/42/106d658abf0c3d0bdb6906969d54702730527c
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/9d8d6191c4313eb31145e790c08656ca8c3010
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/353e3e776166f05ecfc7d71a0ee7e296866df4
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/fb8fc819cb48b2e8f646f68d78a0c116653338
/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 34 using yum and dnf.