How To Install softhsm.x86_64 on Amazon Linux 2

In this tutorial we learn how to install softhsm.x86_64 in Amazon Linux 2. softhsm.x86_64 is Software version of a PKCS#11 Hardware Security Module

Introduction

In this tutorial we learn how to install softhsm.x86_64 on Amazon Linux 2.

What is softhsm.x86_64

NOTE Management. 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 to install softhsm.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install softhsm.x86_64.

Install softhsm.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install softhsm.x86_64 using yum by running the following command:

sudo yum -y install softhsm.x86_64

How To Uninstall softhsm.x86_64 on Amazon Linux 2

To uninstall only the softhsm.x86_64 package we can use the following command:

sudo yum remove softhsm.x86_64

softhsm.x86_64 Package Contents on Amazon Linux 2

/etc/softhsm2.conf
/usr/bin/softhsm2-dump-file
/usr/bin/softhsm2-keyconv
/usr/bin/softhsm2-migrate
/usr/bin/softhsm2-pk11install
/usr/bin/softhsm2-util
/usr/lib64/libsofthsm2.so
/usr/lib64/pkcs11/libsofthsm2.so
/usr/share/doc/softhsm-2.1.0
/usr/share/doc/softhsm-2.1.0/LICENSE
/usr/share/doc/softhsm-2.1.0/NEWS
/usr/share/doc/softhsm-2.1.0/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/softhsm.module
/var/lib/softhsm
/var/lib/softhsm/tokens

References

Summary

In this tutorial we learn how to install softhsm.x86_64 on Amazon Linux 2 using yum.