Skip to content

Commit

Permalink
fix: always load the default certs on our custom SSL context
Browse files Browse the repository at this point in the history
Signed-off-by: Norbert Biczo <[email protected]>
  • Loading branch information
pyrooka committed Jul 2, 2024
1 parent 9530e6c commit 6a110fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ibm_cloud_sdk_core/http_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def init_poolmanager(self, connections, maxsize, block=DEFAULT_POOLBLOCK, **pool
"""Create and use custom SSL configuration."""

ssl_context = create_urllib3_context()
ssl_context.load_default_certs()
ssl_context.minimum_version = ssl.TLSVersion.TLSv1_2

if self._disable_ssl_verification:
Expand Down

0 comments on commit 6a110fe

Please sign in to comment.