This commit is contained in:
Adrien Ferrand 2019-02-22 17:54:38 +01:00
parent 4b5c4638b9
commit 1f0891f7f4

View file

@ -67,7 +67,6 @@ class RevocationChecker(object):
if not host or not url:
return False
logger.error(url)
if self.use_openssl_binary:
return self._check_ocsp_openssl_bin(cert_path, chain_path, host, url)
else:
@ -142,7 +141,7 @@ def _check_ocsp_cryptography(cert_path, chain_path, url):
response = requests.post(url, data=request_binary,
headers={'Content-Type': 'application/ocsp-request'})
except requests.exceptions.RequestException:
logger.info("OCSP check failed for %s (are we offline?)", cert_path)
logger.info("OCSP check failed for %s (are we offline?)", cert_path, exc_info=True)
return False
if response.status_code != 200:
logger.info("OCSP check failed for %s (HTTP status: %d)", cert_path, response.status_code)