This section covers the installation and configuration of libp11, OpenSC, and the PKCS11 engine plugin for the OpenSSL library. The following list provides an overview of these three libraries:Documentation Index
Fetch the complete documentation index at: https://docs.futurex.com/llms.txt
Use this file to discover all available pages before exploring further.
| Library | Description |
|---|---|
| libp11 | Provides a higher-level (compared to the PKCS #11 library) interface to access 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 | Engine plugin for the OpenSSL library that allows accessing PKCS #11 modules semi-transparently. |
Install libp11 and OpenSC
Select your operating system to install these libraries:Ubuntu or Debian
In a terminal, run the following commands to install libp11 and OpenSC on Ubuntu or Debian:Shell
Red Hat or CentOS
In a terminal, run the following commands to install libp11 and OpenSC on Red Hat or CentOS:Shell
Edit the OpenSSL configuration file
Select your operating system and perform the following instructions to edit the OpenSSL configuration file:Ubuntu 18
Perform the following steps to edit the OpenSSL configuration file on Ubuntu 18:To confirm the location of the After you confirm the location, proceed with the following instructions to edit the OpenSSL configuration file.
pkcs11.so file on your system, run the following command in a terminal as root:Shell
Run the following command to determine the location of the OpenSSL configuration file for the logged-in user:
Shell
If you prefer to edit your global OpenSSL configuration file, its location is usually
/etc/ssl/openssl.cnfOpen the
openssl.cnf file in a text editor. This file is inside the OpenSSL directory determined from the previous command.CentOS 8
Perform the following steps to edit the OpenSSL configuration file on CentOS 8:To confirm the location of the After you confirm the location, proceed with the following instructions to edit the OpenSSL configuration file.
pkcs11.so file on your system, run the following command in a terminal as root:Shell
Run the following command to determine the location of the OpenSSL configuration file for the logged-in user:
Shell
If you prefer to edit your global OpenSSL configuration file, its location is usually
/etc/ssl/openssl.cnfOpen the
openssl.cnf file in a text editor. Find this file in the OpenSSL directory determined from the previous command.
