diff --git a/certbot-apache/certbot_apache/_internal/prefetch_ocsp.py b/certbot-apache/certbot_apache/_internal/prefetch_ocsp.py index 68777031a..652939666 100644 --- a/certbot-apache/certbot_apache/_internal/prefetch_ocsp.py +++ b/certbot-apache/certbot_apache/_internal/prefetch_ocsp.py @@ -266,8 +266,9 @@ class OCSPPrefetchMixin(object): self._ensure_ocsp_dirs() cache_path = os.path.join(self.config.work_dir, "ocsp", "ocsp_cache.db") try: - apache_util.safe_copy(cache_path, - os.path.join(self.config.work_dir, "ocsp_work")) + apache_util.safe_copy( + cache_path, + os.path.join(self.config.work_dir, "ocsp_work", "ocsp_cache.db")) except IOError: logger.debug("Encountered an issue while trying to backup OCSP dbm file")