Open GregDuhamel opened 10 months ago
a lot more digging here. in ucsdriver.py, the code uses httplib. That library was updated:
Changed in version 3.12: The deprecated key_file, cert_file and check_hostname parameters have been removed.
This is probably above my abilities, but if I read this correctly, we need an additional check for version 3.12 that adjusts accordingly not to use key_file with the block at line 81. This would also add support for TLS1.3 potentially?? I'm also unclear on the TLS1Handler but key_file and cert_file both exist there as well.
not necessarily elegant and maybe incomplete but I just put a wrapper around the self.key_file segment:
if sys.version_info >= (2, 7, 9):
# Since python 2.7.9, tls 1.1 and 1.2 are supported via
# SSLContext
ssl_context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
ssl_context.options |= ssl.OP_NO_SSLv2
ssl_context.options |= ssl.OP_NO_SSLv3
if sys.version_info <= (3, 7):
if self.key_file and self.cert_file:
ssl_context.load_cert_chain(keyfile=self.key_file,
certfile=self.cert_file)
self.sock = ssl_context.wrap_socket(sock)
Hello,
thanks for python 3.11 support back in October.
Fedora 39 now use python 3.12 by default, would it be possible to have support for it ? Currently I've an error while using ucsmsdk through ansible module :
Thanks a lot !