Update atst/domain/authnid/crl/__init__.py
Co-Authored-By: montana-mil <42577527+montana-mil@users.noreply.github.com>
This commit is contained in:
parent
ceee1f69d2
commit
4ec9ead1ac
@ -182,6 +182,11 @@ class CRLCache(CRLInterface):
|
||||
except crypto.X509StoreContextError as err:
|
||||
if err.args[0][0] == CRL_EXPIRED_ERROR_CODE:
|
||||
if app.config.get("CRL_FAIL_OPEN"):
|
||||
self._log_info(
|
||||
"Encountered expired CRL for certificate with CN {} and issuer CN {}, failing open.".format(
|
||||
parsed.get_subject().CN, parsed.get_issuer().CN
|
||||
)
|
||||
)
|
||||
return True
|
||||
else:
|
||||
raise CRLInvalidException("CRL expired. Args: {}".format(err.args))
|
||||
|
Loading…
x
Reference in New Issue
Block a user