2008/09/07

eGovernment: Using the Belgian eID under Ubuntu

In Belgium, online eGovernment services require the usage of an electronic Identity Card (eID) as a security token. This eID, coupled with a PIN, allows easier paperless interaction with the official services. Last spring 2008 the eID infrastructure was still Windows-only, but now Linux is supported. This post details how to enable the Belgian eID card reader on Ubuntu (8.04). The official info-website is http://eid.belgium.be/nl/Hoe_installeer_je_de_eID_/Linux/index.jsp.

I borrowed a ACR38 card reader. From the command line it displays:
$ lsusb
Bus 001 Device 004: ID 072
f:9000 Advanced Card Systems, Ltd ACR38 AC1038-based Smart Card Reader
Simply install the ACR38U driver from the Synaptic Package Manager:

Synaptic recommends the pcscd as a dependent package.


Finally, select the 'beidgui' package and accept all dependencies that are proposed:


Now the standalone application can be run. Select Applications/Accessories/Reading and Administration in the Menu or trigger the command line:
$ beigui
The final step is making firefox accept the external card reader. For this, open the local file file:///usr/share/beid/beid-pkcs11-register.html in your browser and accept adding the pkcs#11 module to firefox (please note that the path is slightly different than the official documentation). If everything is OK, you get the following message:

Registration of the "Belgium Identity Card PKCS#11" module in Mozilla, Netscape or Firefox

The "Belgium Identity Card PKCS#11" module is now registered.
Restart firefox and accept the security certificate authority for Belgium:


Nice to see Linux-friendly eGov applications!

More info:
update 24/6/2009: On one of my ubuntu installs I had to run firefox as root:
sudo -i
firefox &
with these two commands, firefox writes its config in /root instead of corrupting your home directory.

2 comments:

Thomas said...

Hi Michael,

Works like a charm.

Please correct:

You need the pcscd package and not the pcsd package. I installed through apt-get install and was confused for a second. So it took me 30s to get the whole thing installed. No need for apt-get build-dep, it is done automatically just press (y/n) y.

Thanks for the great job!

Linux thomas-laptop 2.6.27-11-generic #1 SMP Thu Jan 22 17:22:40 UTC 2009 i686 GNU/Linux
Fri Jan 23 04:45:26 GMT 2009
libacr38u:
Installed: 1.7.9-3
Candidate: 1.7.9-3
Version table:
*** 1.7.9-3 0
500 http://archive.ubuntu.com intrepid/universe Packages
100 /var/lib/dpkg/status
pcscd:
Installed: 1.4.102-1ubuntu1
Candidate: 1.4.102-1ubuntu1
Version table:
*** 1.4.102-1ubuntu1 0
500 http://archive.ubuntu.com intrepid/universe Packages
100 /var/lib/dpkg/status
beidgui:
Installed: 2.6.0-4
Candidate: 2.6.0-4
Version table:
*** 2.6.0-4 0
500 http://archive.ubuntu.com intrepid/universe Packages
100 /var/lib/dpkg/status
Bus 002 Device 003: ID 072f:9000 Advanced Card Systems, Ltd ACR38 AC1038-based Smart Card Reader
[...]
thomas@thomas-laptop:~$

Thomas said...

Hi again,

There's a memory leek in it, it also can be noticed in firefox itself. I will take a closer look tonight.

Cheers,

Thomas

https://bugs.launchpad.net/ubuntu/+source/belpic/+bug/320480