Configure Smart Card Local Cache of Revocation Data
An XCCDF Rule
Description
Configure the operating system for PKI-based authentication to use
local revocation data when unable to access the network to obtain it
remotely. Modify all of the cert_policy
lines in
/etc/pam_pkcs11/pam_pkcs11.conf
to include crl_auto
or crl_offline
like so:
cert_policy = ca,signature,ocsp_on,crl_auto;
Rationale
Without configuring a local cache of revocation data, there is the potential to allow access to users who are no longer authorized (users with revoked certificates).
- ID
- xccdf_org.ssgproject.content_rule_smartcard_configure_crl
- Severity
- Medium
- Updated
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then
if [ ! -f /etc/pam_pkcs11/pam_pkcs11.conf ]; then
cp /usr/share/doc/libpam-pkcs11/examples/pam_pkcs11.conf.example /etc/pam_pkcs11/pam_pkcs11.conf
fi