libp11, OpenSC, and PKCS11 engine plugin for the OpenSSL library. The following list provides an overview of these libraries:
| Library | Description |
|---|---|
| libp11 | Provides a high-level (compared to the PKCS #11 library) interface for accessing PKCS #11 objects. It integrates with applications that use OpenSSL. |
| OpenSC | Provides a set of libraries and utilities to work with smart cards. It focuses on cards that support cryptographic operations and facilitates their use in security applications such as authentication, mail encryption, and digital signatures. |
| PKCS11 engine plugin | An engine plugin for the OpenSSL library that enables access to PKCS #11 modules in a semi-transparent way. |
Install libp11 and OpenSC
Perform the following instructions to installlibp11 and OpenSC on the supported operating systems:
Ubuntu or Debian
On Ubuntu or Debian, in a terminal, run the following sequence of commands to installlibp11 and OpenSC:
Shell
Red Hat or CentOS
On Red Hat or CentOS, in a terminal, run the following sequence of commands to installlibp11 and OpenSC:
Shell
Edit the OpenSSL configuration file
Perform the following steps to edit the OpenSSL configuration file for Ubuntu or Debian-based Linux distributions and Red Hat or CentOS-based distributions:1
Confirm the location of the
pkcs11.so file on your system by running the following command in a terminal as root:Shell
2
Run the following command to determine the location of the OpenSSL configuration file for the logged-in user:
Shell
3
Open in a text editor to edit the
openssl.cnf file for the logged-in user identified in the previous command. If you prefer, you can edit the global OpenSSL configuration file, /etc/ssl/openssl.cnf.4
Add the following line at the top of the file, before any sections:
None
5
Add the following text, based on your operating system, at the bottom of the file after modifying the For CentOS 8, add the following lines:For both operating systems, consider the following information:
MODULE_PATH and PIN lines:For Ubuntu 18, add the following lines:None
None

