Closed
Description
After upgrading to requests 2.32.* our custom SSL adapter doesn't seem to working anymore. This is how it looks like
class CustomSSLAdapter(HTTPAdapter):
def __init__(self):
self.context = ssl.create_default_context()
certfile = ...
keyfile = ...
password = ...
self.context.load_cert_chain(certfile=certfile, keyfile=keyfile, password=password)
super().__init__()
def init_poolmanager(self, *args, **kwargs):
kwargs['ssl_context'] = self.context
return super().init_poolmanager(*args, **kwargs)
We have tried to mount this only for the target url but also for "http://". The code was working find with version 2.31.0.
Expected Result
The adapter should still work.
Actual Result
We got the following error:
SSLError: HTTPSConnectionPool(host=..., port=543): Max retries exceeded with url: ... (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1007)')))
Metadata
Metadata
Assignees
Labels
No labels