simpler CRL implementation; load as-need because we cannot marshal openssl objects in python

This commit is contained in:
dandds
2018-08-16 15:31:36 -04:00
parent e931560dc6
commit 1f7848741b
2 changed files with 22 additions and 26 deletions

View File

@@ -22,11 +22,12 @@ class MockX509Store():
def set_flags(self, flag):
pass
def test_can_build_crl_list(monkeypatch):
location = 'ssl/client-certs/client-ca.der.crl'
cache = CRLCache('ssl/client-certs/client-ca.crt', crl_locations=[location], store_class=MockX509Store)
for store in cache.x509_stores.values():
assert len(store.crls) == 1
assert len(cache.crl_cache.keys()) == 1
def test_can_build_trusted_root_list():
location = 'ssl/server-certs/ca-chain.pem'