'python - how to downgrade openssl

Im having issues with some older certs that are self generated by my routers. I believe it is because openssl no longer supports 3des encryption.

I would like to downgrade my ssl version in python to see if the problems go away.

Current Version:

>>> import ssl
>>> ssl.OPENSSL_VERSION
'OpenSSL 1.0.1t  3 May 2016'
>>>

I am using the docker image for python. and that runs:

# cat /etc/issue
Debian GNU/Linux 8 \n \l

Im not sure which version 3des was removed in, but I would need to use the version before that I think.

I'm using aiohttp which I believe uses urllib3 for requests and I haven't been able to get past the handshake failure currently, which I believe is because of 3des encryption?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source