Fix cdata keyword argument to cadata in ssl.load_verify_locations
CI Test Suite / Run Component Tests & Pipeline Verification (push) Failing after 15s
CI Test Suite / Run Component Tests & Pipeline Verification (push) Failing after 15s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user