Closed cclauss closed 6 months ago
"3.10" MUST be in quotes in YAML... https://dev.to/hugovk/the-python-3-1-problem-85g
"3.10"
Python 3.12 removes the ssl.wrap_socket() function. https://docs.python.org/3/whatsnew/3.12.html#ssl
ssl.wrap_socket()
Any package that still uses ssl.wrap_socket() is broken and insecure.
% python3.12 ./08-ssl-connect-cert-auth-pw.py python/08-ssl-connect-cert-auth-pw.test
python3.12 ./08-ssl-connect-cert-auth-pw.py python/08-ssl-connect-cert-auth-pw.test
Traceback (most recent call last): File "/home/runner/work/paho.mqtt.python/paho.mqtt.python/test/lib/./08-ssl-connect-cert-auth-pw.py", line 25, in <module> ssock = paho_test.create_server_socket_ssl(cert_reqs=ssl.CERT_REQUIRED) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/work/paho.mqtt.python/paho.mqtt.python/test/paho_test.py", line 49, in create_server_socket_ssl ssock = ssl.wrap_socket( ^^^^^^^^^^^^^^^ AttributeError: module 'ssl' has no attribute 'wrap_socket'
@akx
@cclauss the wrap_socket() thing is addressed in https://github.com/eclipse/paho.mqtt.python/pull/771 (as is upgrading the versions)...
wrap_socket()
Closing in favor of #771
"3.10"
MUST be in quotes in YAML... https://dev.to/hugovk/the-python-3-1-problem-85g778
Python 3.12 removes the
ssl.wrap_socket()
function. https://docs.python.org/3/whatsnew/3.12.html#ssl%
python3.12 ./08-ssl-connect-cert-auth-pw.py python/08-ssl-connect-cert-auth-pw.test
@akx