add some verbose logging for 8964

This commit is contained in:
Alex Zorin 2021-08-03 08:24:43 +10:00
parent b6d696b755
commit 54b2e41dde
2 changed files with 2 additions and 0 deletions

View file

@ -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()

View file

@ -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")