Fix cdata keyword argument to cadata in ssl.load_verify_locations
CI Test Suite / Run Component Tests & Pipeline Verification (push) Failing after 15s

This commit is contained in:
2026-09-25 21:20:09 +02:00
parent eb628ff40b
commit 05f703b024
+2 -2
View File
@@ -731,7 +731,7 @@ def enroll_and_sync_license_ws(
ssl_context.check_hostname = False
ssl_context.verify_mode = ssl.CERT_NONE
elif master_root_ca_pem:
ssl_context.load_verify_locations(cdata=master_root_ca_pem)
ssl_context.load_verify_locations(cadata=master_root_ca_pem)
else:
upstream_path = os.path.join(cert_dir, "upstream_ca.crt")
if os.path.exists(upstream_path):
@@ -945,7 +945,7 @@ def renew_ca_cert_mtls(
ssl_ctx.check_hostname = False
ssl_ctx.verify_mode = ssl.CERT_NONE
elif upstream_ca_pem:
ssl_ctx.load_verify_locations(cdata=upstream_ca_pem)
ssl_ctx.load_verify_locations(cadata=upstream_ca_pem)
upstream_ca_path = os.path.join(cert_dir, "upstream_ca.crt")
if os.path.exists(upstream_ca_path) and verify_tls and not upstream_ca_pem:
ssl_ctx.load_verify_locations(cafile=upstream_ca_path)