@@ -29,36 +29,36 @@ def crl_invalid_version(builder: Builder) -> None:
2929 """
3030 Tests a Certificate Revocation List (CRL) with an invalid version.
3131
32- Encapsulates a simple test case where a certificate has been revoked by the CA
33- through a malformed CRL with an invalid `version` field. The CA certificate
34- and CRL are provided, and the leaf certificate is expected to be accepted as
35- the CRL is invalid.
32+ The CRL revokes an arbitrary certificate but has an invalid `version` field.
33+ The leaf certificate should be rejected because the CRL is invalid and cannot
34+ establish the leaf's revocation status.
3635 """
3736
38- _external_crl_testcase (builder , "bad_version" ).succeeds ()
37+ _external_crl_testcase (builder , "bad_version" ).fails ()
3938
4039
4140@testcase
4241def crl_update_generalizedtime_2025 (builder : Builder ) -> None :
4342 """
4443 Tests a Certificate Revocation List (CRL) with invalid (re)issue date encodings.
4544
46- The CRL includes `This Update` and `Next Update` fields encoding dates in the year
47- 2025 as `GeneralizedTime`. This is forbidden per RFC 5280 5.2.1.4 and 5.2.1.5, thus
48- the leaf certificate that the CRL revokes should be accepted.
45+ The CRL revokes an arbitrary certificate but includes `thisUpdate` and
46+ `nextUpdate` fields encoding dates in the year 2025 as `GeneralizedTime`.
47+ This is forbidden per RFC 5280 5.2.1.4 and 5.2.1.5; path building should fail
48+ because the CRL is invalid and cannot establish the leaf's revocation status.
4949 """
5050
51- _external_crl_testcase (builder , "generalized_time_2025" ).succeeds ()
51+ _external_crl_testcase (builder , "generalized_time_2025" ).fails ()
5252
5353
5454@testcase
5555def crl_missing_next_update (builder : Builder ) -> None :
5656 """
5757 Tests a Certificate Revocation List (CRL) missing the nextUpdate field.
5858
59- The CRL revokes the leaf certificate but omits `nextUpdate`. This is forbidden
60- per RFC 5280 5.1.2.5, thus the leaf certificate should be accepted as the CRL
61- is invalid.
59+ The CRL revokes an arbitrary certificate but omits `nextUpdate`. This is
60+ forbidden per RFC 5280 5.1.2.5, so the leaf certificate should be rejected
61+ because the CRL is invalid and cannot establish the leaf's revocation status .
6262 """
6363
64- _external_crl_testcase (builder , "missing_next_update" ).succeeds ()
64+ _external_crl_testcase (builder , "missing_next_update" ).fails ()
0 commit comments