Closed dtrifiro closed 11 months ago
@vaibhavjainwiz
diff --git a/src/caikit_nlp_client/http_client.py b/src/caikit_nlp_client/http_client.py
index bda36d6..b4db375 100644
--- a/src/caikit_nlp_client/http_client.py
+++ b/src/caikit_nlp_client/http_client.py
@@ -55,13 +55,7 @@ class HttpClient:
self._client_key_path = client_key_path
self._ca_cert_path = ca_cert_path
if (
- any(
- (
- self._client_key_path,
- self._client_cert_path,
- self._ca_cert_path,
- )
- )
+ any((self._client_key_path, self._client_cert_path))
and not self._mtls_configured
):
raise ValueError(
plus the Exception message below
Logic for validating TLS arguments in http client is currently broken:
Results in
this is a valid usecase, in which the user provides a custom ca bundle to handle self-signed certificates.