fix multi-step certificate chain bug in CRL check

This commit is contained in:
dandds
2018-08-20 12:27:59 -04:00
parent fda3046832
commit c8bcde48ec
6 changed files with 187 additions and 1 deletions

View File

@@ -80,6 +80,15 @@ def test_throws_error_for_missing_issuer():
assert "issuer" in message
def test_multistep_certificate_chain():
cache = CRLCache(
"tests/fixtures/chain/ca-chain.pem",
crl_locations=["tests/fixtures/chain/intermediate.crl"],
)
cert = open("tests/fixtures/chain/client.crt", "rb").read()
assert cache.crl_check(cert)
def test_parse_disa_pki_list():
with open("tests/fixtures/disa-pki.html") as disa:
disa_html = disa.read()