certutil command. For example:
certutil -A -d /etc/pki/nssdb -n "root CA cert" -t "CT,C,C" -i /tmp/ca_cert.crt
Ignore means that the system continues functioning as normal if the smart card is removed, while Lock immediately locks the screen.
ocsp_on option to the cert_policy directive.
pam_pkcs11.conf file.
vim /etc/pam_pkcs11/pam_pkcs11.conf
cert_policy line so that it contains the ocsp_on option.
cert_policy =ca, ocsp_on, signature;cert_policy and the equals sign. Otherwise, parsing the parameter fails.
/etc/pam_pkcs11/cn_map.
cn_map file:
MY.CAC_CN.123454->login
pklogin_finder tool (in debug mode) first maps the login ID to the certificates on the card and then attempts to output information about the validity of certificates.
pklogin_finder debug