SV-268179r1131166_rule
V-268179
SRG-OS-000384-GPOS-00167
ANIX-00-002060
CAT II
10
Configure NixOS, for PKI-based authentication, to use local revocation data when unable to access the network to obtain it remotely.
Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix:
security.pam.p11.enable = true;
environment.etc."pam_pkcs11/pam_pkcs11.conf".text = ''
cert_policy = ca,signature,ocsp_on, crl_auto;
'';
Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch
Verify NixOS, for PKI-based authentication, uses local revocation data when unable to access the network to obtain it remotely with the following command:
$ grep cert_policy /etc/pam_pkcs11/pam_pkcs11.conf
cert_policy = ca,signature,ocsp_on, crl_auto;
If the cert_policy does not contain the options in the example output, this is a finding.
V-268179
False
ANIX-00-002060
Verify NixOS, for PKI-based authentication, uses local revocation data when unable to access the network to obtain it remotely with the following command:
$ grep cert_policy /etc/pam_pkcs11/pam_pkcs11.conf
cert_policy = ca,signature,ocsp_on, crl_auto;
If the cert_policy does not contain the options in the example output, this is a finding.
M
5658