Enable smart card access in the Chromium snap. You can choose the graphical or terminal interface:
-
In the GNOME graphical interface:
- Open Settings.
- Go to Apps → Chromium Web Browser.
- Enable pcscd.
-
In the terminal, enter the following command:
sudo snap connect chromium:pcscd
Load the smart card module in Chromium:
-
Install the modutil
tool:
sudo apt install libnss3-tools
-
Add the smart card module to the NSS Database:
-
If your card is supported by OpenSC:
modutil -dbdir sql:.pki/nssdb/ -add "OpenSC" -libfile /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so
If you’re running Ubuntu on a different CPU architecture than Intel 64 and AMD64, replace x86_64-linux-gnu
with your architecture code name.
-
If you provided a proprietary smart card driver:
modutil -dbdir sql:.pki/nssdb/ -add "Bit4id" -libfile /home/MY_USER_NAME/snap/chromium/common/libbit4xpki.so
Replace MY_USER_NAME
with your user name, Bit4id
with your smart card name or brand and libbit4xpki.so
with the proprietary driver file name.