Skip to content

Commit dd75106

Browse files
committed
Improve support for plaintext
1 parent c712834 commit dd75106

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/otdf_python/kas_client.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,7 @@ def _get_public_key_with_connect_rpc(self, kas_info):
372372
"Using SSL verification disabled HTTP client for public key retrieval"
373373
)
374374
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
375-
http_client = urllib3.PoolManager(
376-
cert_reqs="CERT_NONE", assert_hostname=False
377-
)
375+
http_client = urllib3.PoolManager(cert_reqs="CERT_NONE")
378376

379377
try:
380378
# For Connect RPC, we need to use the base platform URL without /kas
@@ -623,9 +621,7 @@ def _unwrap_with_connect_rpc(self, key_access, signed_token, policy_json): # no
623621
# Disable SSL verification warnings and certificate verification
624622
logging.info("Using SSL verification disabled HTTP client for unwrap")
625623
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
626-
http_client = urllib3.PoolManager(
627-
cert_reqs="CERT_NONE", assert_hostname=False
628-
)
624+
http_client = urllib3.PoolManager(cert_reqs="CERT_NONE")
629625

630626
# Create Connect RPC client with configured HTTP client
631627
# For Connect RPC, we need to use the base platform URL without /kas

0 commit comments

Comments
 (0)