From 43ae6c39e31c3bfbbcc94fcd57631be51d3c79a4 Mon Sep 17 00:00:00 2001 From: Curtis Castrapel Date: Fri, 17 Aug 2018 12:14:02 -0700 Subject: [PATCH] wait right here --- lemur/plugins/lemur_acme/plugin.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lemur/plugins/lemur_acme/plugin.py b/lemur/plugins/lemur_acme/plugin.py index 926035c4..837b11ff 100644 --- a/lemur/plugins/lemur_acme/plugin.py +++ b/lemur/plugins/lemur_acme/plugin.py @@ -424,13 +424,15 @@ class ACMEIssuerPlugin(IssuerPlugin): }) for entry in pending: + # Recreate acme client for each cert + acme_client, _ = self.acme.setup_acme_client(pending_cert.authority) try: entry["authorizations"] = self.acme.finalize_authorizations( - entry["acme_client"], + acme_client, entry["authorizations"], ) pem_certificate, pem_certificate_chain = self.acme.request_certificate( - entry["acme_client"], + acme_client, entry["authorizations"], entry["order"] ) @@ -453,7 +455,7 @@ class ACMEIssuerPlugin(IssuerPlugin): }) # Ensure DNS records get deleted self.acme.cleanup_dns_challenges( - entry["acme_client"], + acme_client, entry["authorizations"], ) return certs