undo extra change

This commit is contained in:
Brad Warren 2020-05-20 14:36:20 -07:00
parent 82262aece7
commit 6be87e63a7

View file

@ -85,6 +85,8 @@ class RevocationChecker(object):
:returns: True if revoked; False if valid or the check failed or cert is expired.
:rtype: bool
"""
if self.broken:
return False
# Let's Encrypt doesn't update OCSP for expired certificates,
# so don't check OCSP if the cert is expired.
@ -93,9 +95,6 @@ class RevocationChecker(object):
if crypto_util.notAfter(cert_path) <= now:
return False
if self.broken:
return False
url, host = _determine_ocsp_server(cert_path)
if not host or not url:
return False