New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ftplib, urllib2, poplib, httplib, urllib2_localnet use ssl.PROTOCOL_TLSv1 unconditionally #75699
Comments
Debian's OpenSSL now disables TLS 1.0 and 1.1, letting some of the python tests fail. Please make them use a newer protocol version, or make the use of the older versions conditional. |
Two tests are failing in 3.7 branch: ====================================================================== Traceback (most recent call last):
File "/home/heimes/dev/python/cpython/Lib/test/test_ssl.py", line 2660, in test_PROTOCOL_TLS
try_protocol_combo(ssl.PROTOCOL_TLS, ssl.PROTOCOL_TLSv1, 'TLSv1')
File "/home/heimes/dev/python/cpython/Lib/test/test_ssl.py", line 2343, in try_protocol_combo
chatty=False, connectionchatty=False)
File "/home/heimes/dev/python/cpython/Lib/test/test_ssl.py", line 2268, in server_params_test
s.connect((HOST, server.port))
File "/home/heimes/dev/python/cpython/Lib/ssl.py", line 1108, in connect
self._real_connect(addr, False)
File "/home/heimes/dev/python/cpython/Lib/ssl.py", line 1099, in _real_connect
self.do_handshake()
File "/home/heimes/dev/python/cpython/Lib/ssl.py", line 1076, in do_handshake
self._sslobj.do_handshake()
File "/home/heimes/dev/python/cpython/Lib/ssl.py", line 697, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:864) ====================================================================== Traceback (most recent call last):
File "/home/heimes/dev/python/cpython/Lib/test/test_ssl.py", line 2734, in test_protocol_tlsv1_1
try_protocol_combo(ssl.PROTOCOL_TLS, ssl.PROTOCOL_TLSv1_1, 'TLSv1.1')
File "/home/heimes/dev/python/cpython/Lib/test/test_ssl.py", line 2343, in try_protocol_combo
chatty=False, connectionchatty=False)
File "/home/heimes/dev/python/cpython/Lib/test/test_ssl.py", line 2268, in server_params_test
s.connect((HOST, server.port))
File "/home/heimes/dev/python/cpython/Lib/ssl.py", line 1108, in connect
self._real_connect(addr, False)
File "/home/heimes/dev/python/cpython/Lib/ssl.py", line 1099, in _real_connect
self.do_handshake()
File "/home/heimes/dev/python/cpython/Lib/ssl.py", line 1076, in do_handshake
self._sslobj.do_handshake()
File "/home/heimes/dev/python/cpython/Lib/ssl.py", line 697, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:864) Matthias, |
Christian, I assume you'd like to see a test which can be done at *runtime*, not *buildtime*. Assuming you have that openssl upstream patch available in your build dependency, would that help with the detection? If yes, I'll talk to Debian's and Ubuntu's openssl maintainers to backport it, so the _ssl module could use it depending on a configure check. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: