Estonia RIK Signing Linux Arch

How To Install DigiDoc4 on Arch Linux – E-Estonia

Here are instructions to install the DigiDoc4 software for Estonian E-residents on Arch Linux.

ccid is required to use your card reader. If you have an ACS card reader, you need acsccid too

1
2
# ccid required, acsccid if you have an ACS card reader, and pcsc-tools just to check if its working
sudo pacman -S ccid acsccid pcsc-tools

Install opensc from git because opensc in the main Arch repo does not yet contain drivers for EstEID 2018+.

1
yay opensc-git

After installing opensc-git from git, start pcscd as a service

1
2
3
4
# start pcscd service
sudo pcscd
# insert card reader and run a scan from pcsc-tools
pcsc_scan

We are using opensc-git instead of opensc. Since opensc is a required dependency of DigiDoc4 in the AUR, you first need to edit the PKGBUILD and remove opensc entry and then run the yay install.

1
2
3
4
5
6
# this will download the PKGBUILD of qdigidoc4 so we can delete opensc from it
yay -G qdigidoc4

# remove the opensc dependency with vi/nano
cd qdigidoc4
vim PKGBUILD

Once you have removed opensc from the dependencies,

1
2
3
4
# make qdigidoc4 from the AUR without opensc as a dependency. We are using opensc-git instead.
makepkg -si
# wait until install is finished and you should be able to run qdigidoc4 now
qdigidoc4

Insert your card reader and you should see your card details in DigiDoc4!

1
2
3
# later install the token signing software
yay chrome-token-signing
modutil -dbdir sql:$HOME/.pki/nssdb -add opensc-pkcs11 -libfile onepin-opensc-pkcs11.so -mechanisms FRIENDLY

You can test if the card works at logging you into RIK.EE via the https://ariregister.rik.ee/login.py or https://ettevotjaportaal.rik.ee/

More information can be found here if this tutorial becomes out of date: https://wiki.archlinux.org/index.php/Electronic_identification#Estonia

Estonia RIK Signing Linux Arch
Estonia RIK Signing Linux Arch

Leave a Reply

Your email address will not be published. Required fields are marked *