Skip to content

Instantly share code, notes, and snippets.

@ndob
Created June 30, 2025 21:39
Show Gist options
  • Select an option

  • Save ndob/fd5b9406e22a255c6b3bfe728f7f4cf4 to your computer and use it in GitHub Desktop.

Select an option

Save ndob/fd5b9406e22a255c6b3bfe728f7f4cf4 to your computer and use it in GitHub Desktop.
Stampit for Ubuntu 24.04 Circle CIR115B

Install required packages

sudo apt install pcscd pcsc-tools opensc

Get driver from https://abcircle.com/en/product/2/CIR115B/sim-sized-contact-smart-card-reader/ (at the time of writing version was 2.2.1)

sudo dpkg -i libabcccid_2.2.1-1_amd64.deb

Firefox configuration

Snap package is not working for some reason (details misho-knowledge-base/stampit#3), so remove snap package and use an official mozilla PPA to install firefox: https://fostips.com/ubuntu-21-10-two-firefox-remove-snap/

Option 1 - OpenSC

Reboot the PC after installing the PPA package. OpenSC provided stampit-authenticator should show up in Settings -> Privacy+Security -> Security Devices.

Option 2 - Load libcmP11.so manually.

Extract https://github.com/misho-knowledge-base/stampit/blob/main/resources/CSSI_Client_5.0_Linux.zip . Go "Settings -> Privacy+Security -> Security Devices -> Load" and load the .so.

PDF signing

Install Okular

sudo apt install okular

Tools -> Digitally Sign. This should automatically work. If not please follow (http://wiki.infonotary.com/index.php?title=Instructions_for_signing_documents_with_qualified_electronic_signature_in_Okular )

sudo apt-get install libnss3-tools
mkdir -p $HOME/.pki/nssdb
modutil -add "OpenSC" -libfile onepin-opensc-pkcs11.so -dbdir sql:$HOME/.pki/nssdb -mechanisms FRIENDLY

Links

Based on https://github.com/misho-knowledge-base/stampit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment