Install libpam-pkcs11 by entering the following commands in the terminal:
sudo apt update sudo apt install libpam-pkcs11
Fully featured PAM module for using PKCS#11 smart cards
A Pluggable Authentication Module for PKCS#11 based smart cards. Useful for enabling smart card based user login to a system. . More advanced than libpam-p11. Additional features include full verification of the card data using certificate chains and certificate revocation lists. Advanced username mapping including LDAP, Active Directory and Kerberos.