From be805a0181f41355826989cb5c017f9bd871d374 Mon Sep 17 00:00:00 2001 From: grindsa Date: Fri, 20 Dec 2024 16:13:24 +0100 Subject: [PATCH] bump --- examples/ca_handler/est_ca_handler.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/ca_handler/est_ca_handler.py b/examples/ca_handler/est_ca_handler.py index cd45eedf..0b570b33 100644 --- a/examples/ca_handler/est_ca_handler.py +++ b/examples/ca_handler/est_ca_handler.py @@ -293,15 +293,15 @@ def enroll(self, csr: str) -> Tuple[str, str, str, bool]: error = None cert_raw = None - # recode csr - csr = textwrap.fill(b64_url_recode(self.logger, csr), 64) + '\n' - - if self.est_host: - (error, ca_pem) = self._cacerts_get() + # check for allowed domainlist + error = allowed_domainlist_check_error(self.logger, csr, self.allowed_domainlist) if not error: - # check for allowed domainlist - error = allowed_domainlist_check_error(self.logger, csr, self.allowed_domainlist) + # recode csr + csr = textwrap.fill(b64_url_recode(self.logger, csr), 64) + '\n' + + if self.est_host: + (error, ca_pem) = self._cacerts_get() if not error: if ca_pem: