Closed
Description
I need to pass the client request my own SSLContext. Unfortunately, the case is really tough, as req.ssl is set to True/False with self.ssl = scheme == 'https'
That's cause problems. I have to subclass TCPConnector to overwrite sslcontext with proper context.
The problem is req.ssl can be True/False or SSLContext, but there is absolutly no easy way to pass SSLContext without replacing it with True/False. verify_ssl generates new SSLContext but not what I need.
Any ideas? If it helps, I need something like this:
resp = requests.post('https://xxxx/api/certlogin', data=payload, cert=('client-2048.crt', 'client-2048.key'), headers=headers)