This commit is contained in:
Peter Eckersley 2016-12-22 18:52:20 -08:00
parent 0011a3b7d8
commit 97081452e9

View file

@ -96,7 +96,7 @@ class RevocationChecker(object):
def _translate_ocsp_query(cert_path, ocsp_output, ocsp_errors):
"""Parse openssl's weird output to work out what it means."""
pattern = r"{0}: (WARNING.*)good".format(cert_path)
pattern = r"{0}: (WARNING.*)?good".format(cert_path)
good = re.search(pattern, ocsp_output, flags=re.DOTALL)
warning = good.group(1) if good else None