missed import level in port

This commit is contained in:
jonathan vanasco 2024-12-16 15:42:33 -05:00
parent 1fa110c9d7
commit 761c268934

View file

@ -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.