Setting up Utimaco CryptoServer library in gnupg-pkcs11-scd Configuration File

  1. Run the following command to automatically create the directory structure for GnuPG.

# gpg --list-keys
image-20260520-064056.png


Listing gpg keys

  1. Copy the sample file from resource/gnupg-pkcs11-scd-0.10.0/gnupg-pkcs11-scd/gnupg-pkcs11-scd.conf.example to ~/.gnupg/gnupg-pkcs11-scd.conf.

# cp /usr/local/src/gnupg-pkcs11-scd-0.11.0/gnupg-pkcs11-scd/gnupg-pkcs11-scd.conf.example /root/.gnupg/gnupg-pkcs11-scd.conf
  1. Open the file /root/.gnupg/gnupg-pkcs11-scd.conf and make the following changes.

# pin-cache 0 
# providers p1 
# provider-p1-library /etc/utimaco/lib/libcs_pkcs11_R3.so
  1. Create a file /root/.gnupg/gpg-agent.conf and add the following content in it.

# scdaemon-program /usr/local/bin/gnupg-pkcs11-scd 
# pinentry-program /usr/local/bin/pinentry