diff --git a/certbot-apache/certbot_apache/_internal/prefetch_ocsp.py b/certbot-apache/certbot_apache/_internal/prefetch_ocsp.py index 335fb1ab6..0308da92d 100644 --- a/certbot-apache/certbot_apache/_internal/prefetch_ocsp.py +++ b/certbot-apache/certbot_apache/_internal/prefetch_ocsp.py @@ -150,6 +150,7 @@ class OCSPPrefetchMixin(object): """ self._ensure_ocsp_dirs() + # Ensure cert_path exists before trying to use it. if not os.path.isfile(cert_path): raise OCSPCertificateError("Certificate has been removed from the system.") ocsp_workfile = os.path.join(