From c4b75b1bbd43075bd829e3863d604e43f7603456 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Thu, 30 Apr 2020 15:16:30 -0700 Subject: [PATCH] add deploy_ocsp_prefetch to API --- certbot/certbot/plugins/enhancements.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/certbot/certbot/plugins/enhancements.py b/certbot/certbot/plugins/enhancements.py index dad44e075..694d4e01a 100644 --- a/certbot/certbot/plugins/enhancements.py +++ b/certbot/certbot/plugins/enhancements.py @@ -191,6 +191,17 @@ class OCSPPrefetchEnhancement(object): to finalize the plugin initialization. """ + @abc.abstractmethod + def deploy_ocsp_prefetch(self, lineage, *args, **kwargs): + """ + Gets called for a lineage when its certificate is successfully renewed. + This method is used to prefetch the OCSP response before configuring + the server to use the renewed certificates. + + :param lineage: Certificate lineage object + :type lineage: certbot.interfaces.RenewableCert + """ + @abc.abstractmethod def enable_ocsp_prefetch(self, lineage, domains, *args, **kwargs): """