From 54b2e41dde981c7b3c2c5daab99d2e320f907c10 Mon Sep 17 00:00:00 2001 From: Alex Zorin Date: Tue, 3 Aug 2021 08:24:43 +1000 Subject: [PATCH] add some verbose logging for 8964 --- certbot/certbot/_internal/client.py | 1 + certbot/certbot/crypto_util.py | 1 + 2 files changed, 2 insertions(+) diff --git a/certbot/certbot/_internal/client.py b/certbot/certbot/_internal/client.py index 7fcaf91c5..89454edc6 100644 --- a/certbot/certbot/_internal/client.py +++ b/certbot/certbot/_internal/client.py @@ -306,6 +306,7 @@ class Client: orderr.alternative_fullchains_pem, self.config.preferred_chain, not self.config.dry_run) + logger.info("orderr.fullchain_pem: %s, fullchain: %s", orderr.fullchain_pem, fullchain) cert, chain = crypto_util.cert_and_chain_from_fullchain(fullchain) return cert.encode(), chain.encode() diff --git a/certbot/certbot/crypto_util.py b/certbot/certbot/crypto_util.py index e620d43e0..f4682e237 100644 --- a/certbot/certbot/crypto_util.py +++ b/certbot/certbot/crypto_util.py @@ -619,6 +619,7 @@ def cert_and_chain_from_fullchain(fullchain_pem): # TODO: This will silently skip over any "explanatory text" in between boundaries, # which is prohibited by RFC8555. certs = CERT_PEM_REGEX.findall(fullchain_pem.encode()) + logger.info("regex match: %s", certs) if len(certs) < 2: raise errors.Error("failed to parse fullchain into cert and chain: " + "less than 2 certificates in chain")