From 9e2ff4948497176b44ad87374e3686ea8c91abb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20L=C3=B6sche?= Date: Mon, 2 Oct 2023 11:43:05 +0200 Subject: [PATCH] Update --- resotolib/resotolib/x509.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resotolib/resotolib/x509.py b/resotolib/resotolib/x509.py index 227cdb4e0f..832cf22ef7 100644 --- a/resotolib/resotolib/x509.py +++ b/resotolib/resotolib/x509.py @@ -208,9 +208,8 @@ def generate_ca_bundle_bytes(cert: Certificate, include_certifi: bool = True) -> def write_ca_bundle(cert: Certificate, cert_path: str, include_certifi: bool = True, rename: bool = True) -> None: tmp_cert_path = f"{cert_path}.tmp" if rename else cert_path - content = generate_ca_bundle_bytes(cert, include_certifi) with open(tmp_cert_path, "wb") as f: - f.write(content) + f.write(generate_ca_bundle_bytes(cert, include_certifi)) if rename: os.rename(tmp_cert_path, cert_path)