You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_ssl fails on Fedora 29: test_min_max_version() #79890
vstinner@apu$ ./python -m test test_ssl -m test_min_max_version -v
== CPython 3.8.0a0 (heads/pytime_inf:aaea5b25d1, Jan 10 2019, 17:40:16) [GCC 8.2.1 20181215 (Red Hat 8.2.1-6)]
== Linux-4.19.13-300.fc29.x86_64-x86_64-with-glibc2.28 little-endian
== cwd: /home/vstinner/prog/python/master/build/test_python_26069
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
Run tests sequentially
0:00:00 load avg: 2.33 [1/1] test_ssl
test_ssl: testing with 'OpenSSL 1.1.1 FIPS 11 Sep 2018' (1, 1, 1, 0, 15)
under 'Linux-4.19.13-300.fc29.x86_64-x86_64-with-glibc2.28'
HAS_SNI = True
OP_ALL = 0x80000054
OP_NO_TLSv1_1 = 0x10000000
test_min_max_version (test.test_ssl.ContextTests) ... FAIL
test_min_max_version (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 35268)
server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
server: selected protocol is now None
server: new connection from ('127.0.0.1', 40390)
server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1.0', 256)
server: selected protocol is now None
server: new connection from ('127.0.0.1', 36674)
server: bad connection attempt from ('127.0.0.1', 36674):
Traceback (most recent call last):
File "/home/vstinner/prog/python/master/Lib/test/test_ssl.py", line 2150, in wrap_conn
self.sslconn =self.server.context.wrap_socket(
File "/home/vstinner/prog/python/master/Lib/ssl.py", line 405, in wrap_socket
returnself.sslsocket_class._create(
File "/home/vstinner/prog/python/master/Lib/ssl.py", line 853, in _create
self.do_handshake()
File "/home/vstinner/prog/python/master/Lib/ssl.py", line 1117, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1055)
ok
Activity
vstinner commentedon Jan 10, 2019
test_ssl fails on Fedora 29:
vstinner@apu$ ./python -m test test_ssl -m test_min_max_version -v
== CPython 3.8.0a0 (heads/pytime_inf:aaea5b25d1, Jan 10 2019, 17:40:16) [GCC 8.2.1 20181215 (Red Hat 8.2.1-6)]
== Linux-4.19.13-300.fc29.x86_64-x86_64-with-glibc2.28 little-endian
== cwd: /home/vstinner/prog/python/master/build/test_python_26069
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
Run tests sequentially
0:00:00 load avg: 2.33 [1/1] test_ssl
test_ssl: testing with 'OpenSSL 1.1.1 FIPS 11 Sep 2018' (1, 1, 1, 0, 15)
under 'Linux-4.19.13-300.fc29.x86_64-x86_64-with-glibc2.28'
HAS_SNI = True
OP_ALL = 0x80000054
OP_NO_TLSv1_1 = 0x10000000
test_min_max_version (test.test_ssl.ContextTests) ... FAIL
test_min_max_version (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 35268)
server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
server: selected protocol is now None
server: new connection from ('127.0.0.1', 40390)
server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1.0', 256)
server: selected protocol is now None
server: new connection from ('127.0.0.1', 36674)
server: bad connection attempt from ('127.0.0.1', 36674): Traceback (most recent call last): File "/home/vstinner/prog/python/master/Lib/test/test_ssl.py", line 2150, in wrap_conn self.sslconn = self.server.context.wrap_socket( File "/home/vstinner/prog/python/master/Lib/ssl.py", line 405, in wrap_socket return self.sslsocket_class._create( File "/home/vstinner/prog/python/master/Lib/ssl.py", line 853, in _create self.do_handshake() File "/home/vstinner/prog/python/master/Lib/ssl.py", line 1117, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1055) ok======================================================================
FAIL: test_min_max_version (test.test_ssl.ContextTests)
----------------------------------------------------------------------
Ran 2 tests in 0.026s
FAILED (failures=1)
test test_ssl failed
test_ssl failed
== Tests result: FAILURE ==
1 test failed:
test_ssl
Total duration: 269 ms
Tests result: FAILURE
vstinner@apu$ ./python -m test.pythoninfo|grep ^ssl
ssl.HAS_SNI: True
ssl.OPENSSL_VERSION: OpenSSL 1.1.1 FIPS 11 Sep 2018
ssl.OPENSSL_VERSION_INFO: (1, 1, 1, 0, 15)
ssl.OP_ALL: 0x80000054
ssl.OP_NO_TLSv1_1: 0x10000000
tirkarthi commentedon Jan 10, 2019
Seems related https://bugs.python.org/issue35045
vstinner commentedon Jan 10, 2019
Oh right, it's a duplicate of bpo-35045.