Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zorin <alex@zorin.id.au>2021-08-03 01:24:43 +0300
committerAlex Zorin <alex@zorin.id.au>2021-08-03 01:24:43 +0300
commit54b2e41dde981c7b3c2c5daab99d2e320f907c10 (patch)
tree938752ef4b2545fd1191fd797a6a022f701e14a3
parentb6d696b755a85105a33c63434a26aef5674a24f9 (diff)
add some verbose logging for 8964test-fullchain-parsing-error
-rw-r--r--certbot/certbot/_internal/client.py1
-rw-r--r--certbot/certbot/crypto_util.py1
2 files changed, 2 insertions, 0 deletions
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")