This guide explains how to install the required drivers, access the token, view the certificates, and use it for signing operations on Ubuntu 24.04.
Before installing the SafeNet Authentication Client (SAC), install the necessary smartcard services:
sudo apt update
sudo apt install pcscd pcsc-tools opensc
sudo systemctl enable --now pcscdVerify detection:
pcsc_scanExpected output:
zaqueo@mapache:~$ pcsc_scan
PC/SC device scanner
V 1.7.1 (c) 2001-2022, Ludovic Rousseau <ludovic.rousseau@free.fr>
Using reader plug'n play mechanism
Scanning present readers...
0: SafeNet eToken 5100 [eToken 5110 SC] 00 00
Tue Aug 12 11:30:36 2025
Reader 0: SafeNet eToken 5100 [eToken 5110 SC] 00 00
Event number: 0
Card state: Card inserted,
[...]
The SAC package is not in the default Ubuntu repositories. Download it from Thales/Gemalto:
- Site: https://supportportal.thalesgroup.com/
- Search: SafeNet Authentication Client for Linux
- Choose the 64-bit .deb package for Ubuntu/Debian, e.g.:
Note: I used safenetauthenticationclient_10.9.4723_amd64.deb for example.
safenetauthenticationclient_10.8.123_amd64.deb
After downloading:
sudo apt install ./safenetauthenticationclient_*_amd64.debThis installs the PKCS#11 library (among others, I believe), usually located at:
/usr/lib/libeToken.so
/usr/lib/libeTPkcs11.so
Find it with:
find /usr/lib* -name "libeT*.so"Use the PKCS#11 tools with the SAC library:
pkcs11-tool --module /usr/lib/libeTPkcs11.so -OEnter your token PIN when prompted. You should see entries like:
Certificate Object; type = X.509 cert
label: My User Cert
ID: 45
Subject: ...
Example:
pkcs11-tool --module /usr/lib/libeTPkcs11.so -r --type cert --id 45 > cert.der
openssl x509 -inform DER -in cert.der -noout -text- Go to Preferences → Privacy & Security → Certificates → Security Devices.
- Click Load.
- Name it
Gemalto Token. - Select the module path:
/usr/lib/libeTPkcs11.so. - Your token and its certificates will be available for client authentication.
One simple cross-platform option is JSignPdf:
- Install Java:
sudo apt install default-jre- Download JSignPdf from https://sourceforge.net/projects/jsignpdf/
- Run:
java -jar JSignPdf.jar- In JSignPdf settings, configure PKCS#11 module path to
/usr/lib/libeTPkcs11.soand provide your token PIN. - Choose the PDF, select your certificate, and sign.
This process keeps your private key inside the token while enabling standards-compliant PDF signatures.