Skip to content

Commit d21f2ce

Browse files
committed
chore: use certificate detection through the requests library
Signed-off-by: Norbert Biczo <[email protected]>
1 parent 2ff9c70 commit d21f2ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ibm_cloud_sdk_core/http_adapter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import ssl
22

3-
import certifi
3+
from requests import certs
44
from requests.adapters import HTTPAdapter, DEFAULT_POOLBLOCK
55
from urllib3.util.ssl_ import create_urllib3_context
66

@@ -18,7 +18,7 @@ def init_poolmanager(self, connections, maxsize, block=DEFAULT_POOLBLOCK, **pool
1818

1919
ssl_context = create_urllib3_context()
2020
# NOTE: https://github.com/psf/requests/pull/6731/files#r1622893724
21-
ssl_context.load_verify_locations(certifi.where())
21+
ssl_context.load_verify_locations(certs.where())
2222
ssl_context.minimum_version = ssl.TLSVersion.TLSv1_2
2323

2424
if self._disable_ssl_verification:

0 commit comments

Comments
 (0)