You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a follow-up to b665b28.
An attacker that is able to login into a token could bypass
authentication by using its own certificate with any valid signature.
This change makes the default "ca, signature" with the only way to
disable CA check by using "no_ca".
This, however, also makes the "none" option disabling CRL and OCSP
checks only.
Resolves#80
Copy file name to clipboardExpand all lines: doc/pam_pkcs11.xml
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -613,18 +613,24 @@ is <filename class='directory'>/etc/pam_pkcs11/crls/</filename>.
613
613
</varlistentry>
614
614
615
615
<varlistentry>
616
-
<term><token>cert_policy={none, ca, signature, crl_online, crl_offline, crl_auto}</token></term>
616
+
<term><token>cert_policy={none, ca, no_ca, signature, no_signature, crl_online, crl_offline, crl_auto}</token></term>
617
617
<listitem>
618
618
<para>
619
619
Sets the Certificate verification policy:
620
620
<itemizedlist>
621
-
<listitem><token>none</token>: Performs no verification at all
621
+
<listitem><token>none</token>: Performs only CA and signature checks, does not do CRL checks.
622
622
</listitem>
623
623
624
-
<listitem><token>ca</token>: Checks that Certificate has a recognized CA from ca_dir
624
+
<listitem><token>ca</token>: Checks that Certificate has a recognized CA from ca_dir.
625
625
</listitem>
626
626
627
-
<listitem><token>signature></token>: Does a signature check to ensure that private and public key matches
627
+
<listitem><token>no_ca</token>: Does not check that Certificate is signed by a recognized CA. Only this value disables the CA check.
628
+
</listitem>
629
+
630
+
<listitem><token>signature></token>: Does a signature check to ensure that private and public key matches.
631
+
</listitem>
632
+
633
+
<listitem><token>no_signature></token>: Does not check the signature to ensure that private and public key matches. Only this value disables the signature check.
628
634
</listitem>
629
635
630
636
<listitem><token>crl_online</token>: Downloads the CRL from the location
0 commit comments