How To Install openssl-pkcs11 on Rocky Linux 8

In this tutorial we learn how to install openssl-pkcs11 on Rocky Linux 8. openssl-pkcs11 is A PKCS#11 engine for use with OpenSSL

Introduction

In this tutorial we learn how to install openssl-pkcs11 on Rocky Linux 8.

What is openssl-pkcs11

openssl-pkcs11 enables hardware security module (HSM), and smart card support in OpenSSL applications. More precisely, it is an OpenSSL engine which makes registered PKCS#11 modules available for OpenSSL applications. The engine is optional and can be loaded by configuration file, command line or through the OpenSSL ENGINE API.

We can use yum or dnf to install openssl-pkcs11 on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install openssl-pkcs11.

Install openssl-pkcs11 on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install openssl-pkcs11 using dnf by running the following command:

sudo dnf -y install openssl-pkcs11

Install openssl-pkcs11 on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install openssl-pkcs11 using yum by running the following command:

sudo yum -y install openssl-pkcs11

How To Uninstall openssl-pkcs11 on Rocky Linux 8

To uninstall only the openssl-pkcs11 package we can use the following command:

sudo dnf remove openssl-pkcs11

openssl-pkcs11 Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/a30a4a547871b99c7d4fbfabc43f5cdc03b606
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/1f2e68fe4a2172eb8a512e8e8e98e5c4f8e007
/usr/lib/engines-1.1/libpkcs11.so
/usr/lib/engines-1.1/pkcs11.so
/usr/lib/libp11.so.3
/usr/lib/libp11.so.3.4.2
/usr/share/doc/openssl-pkcs11
/usr/share/doc/openssl-pkcs11/NEWS
/usr/share/licenses/openssl-pkcs11
/usr/share/licenses/openssl-pkcs11/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/66ac25f3007f49fc3cc04795cca50c53c28a4f
/usr/lib/.build-id/99
/usr/lib/.build-id/99/656c5fa09255622c0b01010cd141a3cca4ba77
/usr/lib64/engines-1.1/libpkcs11.so
/usr/lib64/engines-1.1/pkcs11.so
/usr/lib64/libp11.so.3
/usr/lib64/libp11.so.3.4.2
/usr/share/doc/openssl-pkcs11
/usr/share/doc/openssl-pkcs11/NEWS
/usr/share/licenses/openssl-pkcs11
/usr/share/licenses/openssl-pkcs11/COPYING

References

Summary

In this tutorial we learn how to install openssl-pkcs11 on Rocky Linux 8 using yum and dnf.