How To Install opencryptoki-libs.x86_64 on Amazon Linux 2

In this tutorial we learn how to install opencryptoki-libs.x86_64 in Amazon Linux 2. opencryptoki-libs.x86_64 is The run-time libraries for opencryptoki package

Introduction

In this tutorial we learn how to install opencryptoki-libs.x86_64 on Amazon Linux 2.

What is opencryptoki-libs.x86_64

Opencryptoki implements the PKCS#11 specification v2.11 for a set of cryptographic hardware, such as IBM 4764 and 4765 crypto cards, and the Trusted Platform Module (TPM) chip. Opencryptoki also brings a software token implementation that can be used without any cryptographic hardware. This package contains the PKCS#11 library implementation, and requires at least one token implementation (packaged separately) to be fully functional.

We can use yum to install opencryptoki-libs.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install opencryptoki-libs.x86_64.

Install opencryptoki-libs.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 opencryptoki-libs.x86_64 using yum by running the following command:

sudo yum -y install opencryptoki-libs.x86_64

How To Uninstall opencryptoki-libs.x86_64 on Amazon Linux 2

To uninstall only the opencryptoki-libs.x86_64 package we can use the following command:

sudo yum remove opencryptoki-libs.x86_64

opencryptoki-libs.x86_64 Package Contents on Amazon Linux 2

/etc/ld.so.conf.d/opencryptoki-x86_64.conf
/usr/lib64/opencryptoki
/usr/lib64/opencryptoki/PKCS11_API.so
/usr/lib64/opencryptoki/libopencryptoki.so
/usr/lib64/opencryptoki/libopencryptoki.so.0
/usr/lib64/opencryptoki/libopencryptoki.so.0.0.0
/usr/lib64/opencryptoki/stdll
/usr/lib64/pkcs11
/usr/lib64/pkcs11/PKCS11_API.so
/usr/lib64/pkcs11/libopencryptoki.so
/usr/lib64/pkcs11/stdll
/usr/share/doc/opencryptoki-libs-3.7.0
/usr/share/doc/opencryptoki-libs-3.7.0/LICENSE

References

Summary

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