Skip to content

Commit

Permalink
Fix _tls_no_verify handling
Browse files Browse the repository at this point in the history
Signed-off-by: Levko Kravets <levko.ne@gmail.com>
  • Loading branch information
kravets-levko committed Aug 15, 2024
1 parent af91cf0 commit d15d4f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/databricks/sql/auth/thrift_http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ def open(self):
pool_class = HTTPSConnectionPool
_pool_kwargs.update(
{
"cert_reqs": ssl.CERT_NONE
"cert_reqs": ssl.CERT_REQUIRED
if self._ssl_options.tls_verify
else ssl.CERT_REQUIRED,
else ssl.CERT_NONE,
"ca_certs": self._ssl_options.tls_trusted_ca_file,
"cert_file": self._ssl_options.tls_client_cert_file,
"key_file": self._ssl_options.tls_client_cert_key_file,
Expand Down

0 comments on commit d15d4f8

Please sign in to comment.