Skip to content

Commit

Permalink
Update revocation tests for outdated certs
Browse files Browse the repository at this point in the history
  • Loading branch information
wbond committed Jan 27, 2022
1 parent dc260ea commit fc82b79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file added tests/fixtures/geotrust-mixed-2020-ca-1.crt
Binary file not shown.
Binary file modified tests/fixtures/global-root-ca-revoked.chain-demos.digicert.com.crt
Binary file not shown.
6 changes: 3 additions & 3 deletions tests/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_revocation_mode_soft(self):
cert = self._load_cert_object('global-root-ca-revoked.chain-demos.digicert.com.crt')
ca_certs = [self._load_cert_object('digicert-global-root-ca.crt')]
other_certs = [
self._load_cert_object('digicert-sha2-secure-server-ca.crt'),
self._load_cert_object('geotrust-mixed-2020-ca-1.crt'),
]

try:
Expand Down Expand Up @@ -91,7 +91,7 @@ def test_revocation_mode_hard(self):
cert = self._load_cert_object('global-root-ca-revoked.chain-demos.digicert.com.crt')
ca_certs = [self._load_cert_object('digicert-global-root-ca.crt')]
other_certs = [
self._load_cert_object('digicert-sha2-secure-server-ca.crt'),
self._load_cert_object('geotrust-mixed-2020-ca-1.crt'),
]

context = ValidationContext(
Expand All @@ -109,7 +109,7 @@ def test_revocation_mode_hard(self):

expected = (
'(CRL|OCSP response) indicates the end-entity certificate was '
'revoked at 23:32:01 on 2020-01-14, due to an unspecified reason'
'revoked at 00:03:34 on 2020-07-23, due to an unspecified reason'
)
with self.assertRaisesRegex(RevokedError, expected):
validate_path(context, path)
Expand Down

0 comments on commit fc82b79

Please sign in to comment.