And Belgium donated the full source code back to OpenSC under LGPL license.
OpenSC also douments what they call Belgian Belpic on their wiki.
Ckecking the Smartcard Reader Driver
The page Smartcards provides a good documentation about supported hardware and readers.
Install the Packages
Packages to Install:
pcsc-tools (contains some very useful tools to debug smartcard reader usage);
apt install opensc pcscd
apt install opensc pcsc-tools
Configure Firefox to use the BeID
Just follow the very good tutorial Installing OpenSC PKCS#11 Module in Firefox, Step by Step.
- To configure Firefox, you will need to find the right library. One of the next chapter explains how to find it.
- If the cardreader is not recognized in Firefox, try connecting it to the USB port before starting Firefox. Connecting the cardreader beforehand is a good practice.
Configure Chromium to use the BeID
Just install the package:
apt install libnss3-tools
and add the security module to the database:
modutil -dbdir sql:$HOME/.pki/nssdb/ -add eID -libfile /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so
- To configure Chromium, you will need to find the right library. The next chapter explains how to find it.
Finding the opensc library
OpenSC provides a set of libraries and utilities to access smartcards and to facilitate their use in security applications such as mail encryption, authentication, and digital signature implementing the PKCS#11 API.
The PKCS#11 API library is in the package opensc-pkcs11.
$ dpkg --listfiles opensc-pkcs11 | grep /opensc-pkcs11.so /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so /usr/lib/x86_64-linux-gnu/pkcs11/opensc-pkcs11.so
Just copy/paste one of the libraries in the Module filename box.
That's is. You can test it on the eID software website.
Debugging Smartcard usage
pcsc-tools provides usefull tools to debug smartcards problems like: