Introduction
In this tutorial we learn how to install softhsm
on CentOS 8.
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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install softhsm.
Install softhsm on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8
To uninstall only the softhsm
package we can use the following command:
sudo dnf remove softhsm
softhsm Package Contents on CentOS 8
/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/1f
/usr/lib/.build-id/1f/4282eef168cf2102b54cb9b4cbcd483f8961bc
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/85b578ae50ac619a64ceced5a8ec942e29c14e
/usr/lib/.build-id/a3
/usr/lib/.build-id/a3/9ab5c4d7c875f9f7ad641daf21a117b27dff76
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/77cdcb7ff4e3aff29353e7bab8b9b8bb9b8be3
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/c39c0e3b76999296fde2908a6cc04b0b02559c
/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 CentOS 8 using yum and dnf.