Install libpam-poldi by entering the following commands in the terminal:
sudo apt update sudo apt install libpam-poldi
PAM module allowing authentication using a OpenPGP smartcard
This PAM module will allow you to login, screenlock and validate to services using your GnuPG smartcard. You might have expected to find this with a name of libpam-pgp, libpam-gpg, libpam-openpgp or libpam-gnupg. . This code is considered experimental and needs more testing. It is, however, already used for the daily login.