mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 23:32:06 -04:00
use default timeout
This commit is contained in:
parent
636d597c5d
commit
2567167f13
1 changed files with 5 additions and 5 deletions
|
|
@ -157,16 +157,16 @@ class OCSPPrefetchMixin(object):
|
|||
apache_util.certid_sha1_hex(cert_path))
|
||||
handler = ocsp.RevocationChecker()
|
||||
try:
|
||||
if not handler.ocsp_revoked_by_paths(cert_path, chain_path, 10, ocsp_workfile):
|
||||
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
|
||||
cert_sha = apache_util.certid_sha1(cert_path)
|
||||
# dbm.open automatically adds the file extension
|
||||
self._write_to_dbm(self._ocsp_store, cert_sha,
|
||||
self._ocsp_response_dbm(ocsp_workfile))
|
||||
else:
|
||||
logger.warning("Encountered an issue while trying to prefetch OCSP "
|
||||
"response for certificate: %s", cert_path)
|
||||
raise OCSPCertificateError("Certificate has been revoked.")
|
||||
finally:
|
||||
try:
|
||||
os.remove(ocsp_workfile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue