Installing Libp11

  1. Download the latest libp11 package from Releases · OpenSC/libp11 · GitHub.

# wget https://github.com/OpenSC/libp11/releases/download/libp110.4.12/libp11-0.4.18.tar.gz  
  1. Extract the file.

# tar -xvf libp11-0.4.18.tar.gz 
  1. Go to libp11 directory, build and install libp11using the following commands.

# cd libp11-0.4.18 
# ./configure OPENSSL_CFLAGS="-I/usr/local/openssl/include/openssl" 

OPENSSL_LIBS="-L/usr/local/openssl/lib -lcrypto" prefix="/usr/local/libp11/" 

# make 
# make install # export LD_LIBRARY_PATH=/usr/local/openssl/lib: /usr/local/libp11/lib/:$LD_LIBRARY_PATH 

If you are using existing or pre-installed openssl then change the value of

OPENSSL_CFLAGS and OPENSSL_LIBS to their correct path.

Make a note of "Engine Directory" path while running the configure command as the pkcs11.so file is generated inside this directory after running "make install" command.

After rebooting the server, export the library path every time.

# export LD_LIBRARY_PATH=/usr/local/openssl/lib:

/usr/local/libp11/lib/:$LD_LIBRARY_PATH and # export PATH=/usr/local/openssl/bin:$PATH