Remove warning.

If we hit this case, the cert is revoked and the error message we raise saying
this will be shown to the user higher up the stack.
This commit is contained in:
Brad Warren 2020-05-21 09:00:39 -07:00
parent 4d10e27a4d
commit 2d9ffa3a9c

View file

@ -159,8 +159,6 @@ class OCSPPrefetchMixin(object):
handler = ocsp.RevocationChecker()
try:
if handler.ocsp_revoked_by_paths(cert_path, chain_path, response_file=ocsp_workfile):
logger.warning("Encountered an issue while trying to prefetch OCSP "
"response for certificate: %s", cert_path)
raise OCSPCertificateError("Certificate has been revoked.")
else:
# Guaranteed good response