From 761c268934b10fc4e36a1d9edce952e59aa91cf3 Mon Sep 17 00:00:00 2001 From: jonathan vanasco Date: Mon, 16 Dec 2024 15:42:33 -0500 Subject: [PATCH] missed import level in port --- certbot/certbot/crypto_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot/certbot/crypto_util.py b/certbot/certbot/crypto_util.py index 9e6af1988..9df0d22d6 100644 --- a/certbot/certbot/crypto_util.py +++ b/certbot/certbot/crypto_util.py @@ -598,7 +598,7 @@ def cert_and_chain_from_fullchain(fullchain_pem: str) -> Tuple[str, str]: certs_normalized: List[str] = [] for cert_pem in certs: cert = x509.load_pem_x509_certificate(cert_pem) - cert_pem = cert.public_bytes(serialization.Encoding.PEM) + cert_pem = cert.public_bytes(Encoding.PEM) certs_normalized.append(cert_pem.decode()) # Since each normalized cert has a newline suffix, no extra newlines are required.