== CPython 3.5.9+ (default, Jul 2 2020, 00:08:41) [GCC 9.3.0] == Linux-5.4.0-7634-generic-x86_64-with-debian-bullseye-sid little-endian == hash algorithm: siphash24 64bit == /tmp/xyz/build/test_python_537815 Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0) 0:00:00 load avg: 0.52 [1/1] test_ssl test_ssl: testing with 'OpenSSL 1.1.1f 31 Mar 2020' (1, 1, 1, 6, 15) under Linux ('debian', 'bullseye/sid', '') HAS_SNI = True OP_ALL = 0x80000054 OP_NO_TLSv1_1 = 0x10000000 test__create_stdlib_context (test.test_ssl.ContextTests) ... ok test_cert_store_stats (test.test_ssl.ContextTests) ... ok test_check_hostname (test.test_ssl.ContextTests) ... ok test_ciphers (test.test_ssl.ContextTests) ... ok test_constructor (test.test_ssl.ContextTests) ... ok test_create_default_context (test.test_ssl.ContextTests) ... ok test_get_ca_certs (test.test_ssl.ContextTests) ... ok test_load_cert_chain (test.test_ssl.ContextTests) ... ok test_load_default_certs (test.test_ssl.ContextTests) ... ok test_load_default_certs_env (test.test_ssl.ContextTests) ... ok test_load_default_certs_env_windows (test.test_ssl.ContextTests) ... skipped 'Windows specific' test_load_dh_params (test.test_ssl.ContextTests) ... ERROR test_load_verify_cadata (test.test_ssl.ContextTests) ... ok test_load_verify_locations (test.test_ssl.ContextTests) ... ok test_options (test.test_ssl.ContextTests) ... skipped 'bpo-36576: fail on OpenSSL 1.1.1' test_protocol (test.test_ssl.ContextTests) ... ok test_session_stats (test.test_ssl.ContextTests) ... ok test_set_default_verify_paths (test.test_ssl.ContextTests) ... ok test_set_ecdh_curve (test.test_ssl.ContextTests) ... ok test_sni_callback (test.test_ssl.ContextTests) ... ok test_sni_callback_refcycle (test.test_ssl.ContextTests) ... ok test_verify_flags (test.test_ssl.ContextTests) ... ok test_verify_mode (test.test_ssl.ContextTests) ... ok test_DER_to_PEM (test.test_ssl.BasicSocketTests) ... ok test_asn1object (test.test_ssl.BasicSocketTests) ... ok test_cert_time_to_seconds (test.test_ssl.BasicSocketTests) ... ok test_cert_time_to_seconds_locale (test.test_ssl.BasicSocketTests) ... skipped 'locale-specific month name needs to be different from C locale' test_cert_time_to_seconds_timezone (test.test_ssl.BasicSocketTests) ... ok test_constants (test.test_ssl.BasicSocketTests) ... ok test_dealloc_warn (test.test_ssl.BasicSocketTests) ... ok test_empty_cert (test.test_ssl.BasicSocketTests) Wrapping with an empty cert file ... ok test_enum_certificates (test.test_ssl.BasicSocketTests) ... skipped 'Windows specific' test_enum_crls (test.test_ssl.BasicSocketTests) ... skipped 'Windows specific' test_errors (test.test_ssl.BasicSocketTests) ... ok test_get_default_verify_paths (test.test_ssl.BasicSocketTests) ... ok test_malformed_cert (test.test_ssl.BasicSocketTests) Wrapping with a badly formatted certificate (syntax error) ... ok test_malformed_key (test.test_ssl.BasicSocketTests) Wrapping with a badly formatted key (syntax error) ... ok test_match_hostname (test.test_ssl.BasicSocketTests) ... ok test_openssl_version (test.test_ssl.BasicSocketTests) ... ok test_parse_all_sans (test.test_ssl.BasicSocketTests) ... ok test_parse_cert (test.test_ssl.BasicSocketTests) ... {'issuer': ((('countryName', 'XY'),), (('localityName', 'Castle Anthrax'),), (('organizationName', 'Python Software Foundation'),), (('commonName', 'localhost'),)), 'notAfter': 'Aug 26 14:23:15 2028 GMT', 'notBefore': 'Aug 29 14:23:15 2018 GMT', 'serialNumber': '98A7CF88C74A32ED', 'subject': ((('countryName', 'XY'),), (('localityName', 'Castle Anthrax'),), (('organizationName', 'Python Software Foundation'),), (('commonName', 'localhost'),)), 'subjectAltName': (('DNS', 'localhost'),), 'version': 3} {'OCSP': ('http://ocsp.verisign.com',), 'caIssuers': ('http://SVRIntl-G3-aia.verisign.com/SVRIntlG3.cer',), 'crlDistributionPoints': ('http://SVRIntl-G3-crl.verisign.com/SVRIntlG3.crl',), 'issuer': ((('countryName', 'US'),), (('organizationName', 'VeriSign, Inc.'),), (('organizationalUnitName', 'VeriSign Trust Network'),), (('organizationalUnitName', 'Terms of use at https://www.verisign.com/rpa (c)10'),), (('commonName', 'VeriSign Class 3 International Server CA - G3'),)), 'notAfter': 'Sep 20 23:59:59 2012 GMT', 'notBefore': 'Sep 21 00:00:00 2011 GMT', 'serialNumber': '2EE6EA7640A075CEE5005F4D7C79549A', 'subject': ((('countryName', 'FI'),), (('stateOrProvinceName', 'Espoo'),), (('localityName', 'Espoo'),), (('organizationName', 'Nokia'),), (('organizationalUnitName', 'BI'),), (('commonName', 'projects.developer.nokia.com'),)), 'subjectAltName': (('DNS', 'projects.developer.nokia.com'), ('DNS', 'projects.forum.nokia.com')), 'version': 3} ok test_parse_cert_CVE_2013_4238 (test.test_ssl.BasicSocketTests) ... {'issuer': ((('countryName', 'US'),), (('stateOrProvinceName', 'Oregon'),), (('localityName', 'Beaverton'),), (('organizationName', 'Python Software Foundation'),), (('organizationalUnitName', 'Python Core Development'),), (('commonName', 'null.python.org\x00example.org'),), (('emailAddress', 'python-dev@python.org'),)), 'notAfter': 'Aug 7 13:12:52 2013 GMT', 'notBefore': 'Aug 7 13:11:52 2013 GMT', 'serialNumber': '00', 'subject': ((('countryName', 'US'),), (('stateOrProvinceName', 'Oregon'),), (('localityName', 'Beaverton'),), (('organizationName', 'Python Software Foundation'),), (('organizationalUnitName', 'Python Core Development'),), (('commonName', 'null.python.org\x00example.org'),), (('emailAddress', 'python-dev@python.org'),)), 'subjectAltName': (('DNS', 'altnull.python.org\x00example.com'), ('email', 'null@python.org\x00user@example.org'), ('URI', 'http://null.python.org\x00http://example.org'), ('IP Address', '192.0.2.1'), ('IP Address', '2001:DB8:0:0:0:0:0:1\n')), 'version': 3} ok test_parse_cert_CVE_2019_5010 (test.test_ssl.BasicSocketTests) ... {'issuer': ((('countryName', 'UK'),), (('commonName', 'cody-ca'),)), 'notAfter': 'Jun 14 18:00:58 2028 GMT', 'notBefore': 'Jun 18 18:00:58 2018 GMT', 'serialNumber': '02', 'subject': ((('countryName', 'UK'),), (('commonName', 'codenomicon-vm-2.test.lal.cisco.com'),)), 'subjectAltName': (('DNS', 'codenomicon-vm-2.test.lal.cisco.com'),), 'version': 3} ok test_purpose_enum (test.test_ssl.BasicSocketTests) ... ok test_random (test.test_ssl.BasicSocketTests) ... RAND_status is 1 (sufficient randomness) ok test_random_fork (test.test_ssl.BasicSocketTests) ... ok test_refcycle (test.test_ssl.BasicSocketTests) ... ok test_server_side (test.test_ssl.BasicSocketTests) ... ok test_str_for_enums (test.test_ssl.BasicSocketTests) ... ok test_timeout (test.test_ssl.BasicSocketTests) ... ok test_tls_unique_channel_binding (test.test_ssl.BasicSocketTests) ... ok test_unknown_channel_binding (test.test_ssl.BasicSocketTests) ... ok test_unsupported_dtls (test.test_ssl.BasicSocketTests) ... ok test_wrapped_unconnected (test.test_ssl.BasicSocketTests) ... ok test_lib_reason (test.test_ssl.SSLErrorTests) ... ok test_str (test.test_ssl.SSLErrorTests) ... ok test_subclass (test.test_ssl.SSLErrorTests) ... ERROR test_buffer_types (test.test_ssl.MemoryBIOTests) ... ok test_eof (test.test_ssl.MemoryBIOTests) ... ok test_error_types (test.test_ssl.MemoryBIOTests) ... ok test_pending (test.test_ssl.MemoryBIOTests) ... ok test_read_write (test.test_ssl.MemoryBIOTests) ... ok test_alpn_protocols (test.test_ssl.ThreadedTests) ... skipped 'bpo-36576: fail on OpenSSL 1.1.1' test_asyncore_server (test.test_ssl.ThreadedTests) Check the example asyncore integration. ... server: new connection from 127.0.0.1:50088 client: sending b'FOO\n'... server: read b'FOO\n' from client client: read b'foo\n' client: closing connection. client: connection closed. cleanup: stopping server. server: read b'over\n' from client cleanup: joining server thread. server: closed connection server: read b'' from client cleanup: successfully joined. ok test_check_hostname (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 55630) server: bad connection attempt from ('127.0.0.1', 55630): Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ERROR test_compression (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 35456) server: bad connection attempt from ('127.0.0.1', 35456): Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ERROR test_compression_disabled (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 43408) server: bad connection attempt from ('127.0.0.1', 43408): Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ERROR test_crl_check (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 41964) server: bad connection attempt from ('127.0.0.1', 41964): Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ERROR test_default_ciphers (test.test_ssl.ThreadedTests) ... skipped 'no DES cipher available' test_default_ecdh_curve (test.test_ssl.ThreadedTests) ... skipped 'bpo-36576: fail on OpenSSL 1.1.1' test_dh_params (test.test_ssl.ThreadedTests) ... ERROR test_do_handshake_enotconn (test.test_ssl.ThreadedTests) ... ok test_echo (test.test_ssl.ThreadedTests) Basic test of an SSL client connecting to a server ... server: new connection from ('127.0.0.1', 39034) client: sending b'FOO\n'... server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None client: read b'foo\n' client: sending b'FOO\n'... client: read b'foo\n' client: sending b'FOO\n'... client: read b'foo\n' client: closing connection. server: new connection from ('127.0.0.1', 52912) server: bad connection attempt from ('127.0.0.1', 52912): Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) server: new connection from ('127.0.0.1', 36410) server: bad connection attempt from ('127.0.0.1', 36410): Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) server: new connection from ('127.0.0.1', 46106) server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256) server: selected protocol is now None client: sending b'FOO\n'... client: read b'foo\n' client: sending b'FOO\n'... client: read b'foo\n' client: sending b'FOO\n'... client: read b'foo\n' client: closing connection. test_getpeercert (test.test_ssl.ThreadedTests) ... {'issuer': ((('countryName', 'XY'),), (('localityName', 'Castle Anthrax'),), (('organizationName', 'Python Software Foundation'),), (('commonName', 'localhost'),)), 'notAfter': 'Aug 26 14:23:15 2028 GMT', 'notBefore': 'Aug 29 14:23:15 2018 GMT', 'serialNumber': '98A7CF88C74A32ED', 'subject': ((('countryName', 'XY'),), (('localityName', 'Castle Anthrax'),), (('organizationName', 'Python Software Foundation'),), (('commonName', 'localhost'),)), 'subjectAltName': (('DNS', 'localhost'),), 'version': 3} Connection cipher is ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256). ok test_getpeercert_enotconn (test.test_ssl.ThreadedTests) ... ok test_handshake_timeout (test.test_ssl.ThreadedTests) ... ok test_nonblocking_send (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 45608) server: bad connection attempt from ('127.0.0.1', 45608): Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ERROR test_npn_protocols (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 46630) server: bad connection attempt from ('127.0.0.1', 46630): Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ERROR test_protocol_sslv2 (test.test_ssl.ThreadedTests) Connecting to an SSLv2 server with various client options ... skipped 'OpenSSL is compiled without SSLv2 support' test_protocol_sslv23 (test.test_ssl.ThreadedTests) Connecting to an SSLv23 server with various client options ... PROTOCOL_TLS->PROTOCOL_TLS CERT_NONE PROTOCOL_TLSv1->PROTOCOL_TLS CERT_NONE ERROR test_protocol_sslv3 (test.test_ssl.ThreadedTests) Connecting to an SSLv3 server with various client options ... skipped 'OpenSSL is compiled without SSLv3 support' test_protocol_tlsv1 (test.test_ssl.ThreadedTests) Connecting to a TLSv1 server with various client options ... PROTOCOL_TLSv1->PROTOCOL_TLSv1 CERT_NONE ERROR test_protocol_tlsv1_1 (test.test_ssl.ThreadedTests) Connecting to a TLSv1.1 server with various client options. ... PROTOCOL_TLSv1_1->PROTOCOL_TLSv1_1 CERT_NONE ERROR test_protocol_tlsv1_2 (test.test_ssl.ThreadedTests) Connecting to a TLSv1.2 server with various client options. ... PROTOCOL_TLSv1_2->PROTOCOL_TLSv1_2 CERT_NONE {PROTOCOL_TLS->PROTOCOL_TLSv1_2} CERT_NONE PROTOCOL_TLSv1_2->PROTOCOL_TLS CERT_NONE {PROTOCOL_TLSv1->PROTOCOL_TLSv1_2} CERT_NONE {PROTOCOL_TLSv1_2->PROTOCOL_TLSv1} CERT_NONE {PROTOCOL_TLSv1_1->PROTOCOL_TLSv1_2} CERT_NONE {PROTOCOL_TLSv1_2->PROTOCOL_TLSv1_1} CERT_NONE ok test_read_write_after_close_raises_valuerror (test.test_ssl.ThreadedTests) ... ok test_recv_send (test.test_ssl.ThreadedTests) Test recv(), send() and friends. ... server: new connection from ('127.0.0.1', 51502) server: bad connection attempt from ('127.0.0.1', 51502): Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ERROR test_recv_zero (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 33734) server: bad connection attempt from ('127.0.0.1', 33734): Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ERROR test_rude_shutdown (test.test_ssl.ThreadedTests) A brutal shutdown of an SSL server should raise an OSError ... ok test_selected_alpn_protocol (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 34222) server: bad connection attempt from ('127.0.0.1', 34222): Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ERROR test_selected_alpn_protocol_if_server_uses_alpn (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 57618) server: bad connection attempt from ('127.0.0.1', 57618): Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ERROR test_selected_npn_protocol (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 60686) server: bad connection attempt from ('127.0.0.1', 60686): Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ERROR test_sendfile (test.test_ssl.ThreadedTests) ... ok test_server_accept (test.test_ssl.ThreadedTests) ... ok test_shared_ciphers (test.test_ssl.ThreadedTests) ... skipped 'bpo-36576: fail on OpenSSL 1.1.1' test_sni_callback (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 43416) server: bad connection attempt from ('127.0.0.1', 43416): Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ERROR test_sni_callback_alert (test.test_ssl.ThreadedTests) ... FAIL test_sni_callback_raising (test.test_ssl.ThreadedTests) ... FAIL test_sni_callback_wrong_return_type (test.test_ssl.ThreadedTests) ... FAIL test_socketserver (test.test_ssl.ThreadedTests) Using socketserver to create and manage SSL connections. ... server (('127.0.0.1', 34351):34351 ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)): [02/Jul/2020 00:44:12] "GET /keycert.pem HTTP/1.1" 200 - client: read 4058 bytes from remote server '>' stopping HTTPS server joining HTTPS thread ok test_starttls (test.test_ssl.ThreadedTests) Switching from clear text to encrypted and back again. ... client: sending b'msg 1'... server: new connection from ('127.0.0.1', 45552) server: read b'msg 1' (unencrypted), sending back b'msg 1' (unencrypted)... client: read b'msg 1' from server client: sending b'MSG 2'... server: read b'MSG 2' (unencrypted), sending back b'msg 2' (unencrypted)... client: read b'msg 2' from server client: sending b'STARTTLS'... server: read STARTTLS from client, sending OK... client: read b'ok' from server, starting TLS... server: bad connection attempt from ('127.0.0.1', 45552): Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ERROR test_tls_unique_channel_binding (test.test_ssl.ThreadedTests) Test tls-unique channel binding. ... server: new connection from ('127.0.0.1', 37522) server: bad connection attempt from ('127.0.0.1', 37522): Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ERROR test_version_basic (test.test_ssl.ThreadedTests) ... ERROR test_wrong_cert (test.test_ssl.ThreadedTests) Connecting when the server rejects the client's certificate ... ERROR ====================================================================== ERROR: test_load_dh_params (test.test_ssl.ContextTests) ---------------------------------------------------------------------- ssl.SSLError: [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:3233) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1078, in test_load_dh_params ctx.load_dh_params(DHFILE) SystemError: returned a result with an error set ====================================================================== ERROR: test_subclass (test.test_ssl.SSLErrorTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 1354, in test_subclass c.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_check_hostname (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 2392, in test_check_hostname s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_compression (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 3133, in test_compression chatty=True, connectionchatty=True) File "/tmp/xyz/Lib/test/test_ssl.py", line 2186, in server_params_test s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_compression_disabled (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 3145, in test_compression_disabled chatty=True, connectionchatty=True) File "/tmp/xyz/Lib/test/test_ssl.py", line 2186, in server_params_test s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_crl_check (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 2351, in test_crl_check s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_dh_params (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- ssl.SSLError: [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:3233) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 3152, in test_dh_params context.load_dh_params(DHFILE) SystemError: returned a result with an error set ====================================================================== ERROR: test_echo (test.test_ssl.ThreadedTests) (protocol='PROTOCOL_TLSv1') Basic test of an SSL client connecting to a server ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 2292, in test_echo chatty=True, connectionchatty=True) File "/tmp/xyz/Lib/test/test_ssl.py", line 2186, in server_params_test s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_echo (test.test_ssl.ThreadedTests) (protocol='PROTOCOL_TLSv1_1') Basic test of an SSL client connecting to a server ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 2292, in test_echo chatty=True, connectionchatty=True) File "/tmp/xyz/Lib/test/test_ssl.py", line 2186, in server_params_test s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_nonblocking_send (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 2904, in test_nonblocking_send s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_npn_protocols (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 3248, in test_npn_protocols chatty=True, connectionchatty=True) File "/tmp/xyz/Lib/test/test_ssl.py", line 2186, in server_params_test s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_protocol_sslv23 (test.test_ssl.ThreadedTests) Connecting to an SSLv23 server with various client options ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 2528, in test_protocol_sslv23 try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_TLSv1, 'TLSv1') File "/tmp/xyz/Lib/test/test_ssl.py", line 2259, in try_protocol_combo chatty=False, connectionchatty=False) File "/tmp/xyz/Lib/test/test_ssl.py", line 2186, in server_params_test s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_protocol_tlsv1 (test.test_ssl.ThreadedTests) Connecting to a TLSv1 server with various client options ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 2576, in test_protocol_tlsv1 try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, 'TLSv1') File "/tmp/xyz/Lib/test/test_ssl.py", line 2259, in try_protocol_combo chatty=False, connectionchatty=False) File "/tmp/xyz/Lib/test/test_ssl.py", line 2186, in server_params_test s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_protocol_tlsv1_1 (test.test_ssl.ThreadedTests) Connecting to a TLSv1.1 server with various client options. ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 2594, in test_protocol_tlsv1_1 try_protocol_combo(ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_TLSv1_1, 'TLSv1.1') File "/tmp/xyz/Lib/test/test_ssl.py", line 2259, in try_protocol_combo chatty=False, connectionchatty=False) File "/tmp/xyz/Lib/test/test_ssl.py", line 2186, in server_params_test s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_recv_send (test.test_ssl.ThreadedTests) Test recv(), send() and friends. ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 2762, in test_recv_send s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_recv_zero (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 2876, in test_recv_zero s = ssl.wrap_socket(s, suppress_ragged_eofs=False) File "/tmp/xyz/Lib/ssl.py", line 1077, in wrap_socket ciphers=ciphers) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() OSError: [Errno 0] Error ====================================================================== ERROR: test_selected_alpn_protocol (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 3166, in test_selected_alpn_protocol chatty=True, connectionchatty=True) File "/tmp/xyz/Lib/test/test_ssl.py", line 2186, in server_params_test s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_selected_alpn_protocol_if_server_uses_alpn (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 3178, in test_selected_alpn_protocol_if_server_uses_alpn chatty=True, connectionchatty=True) File "/tmp/xyz/Lib/test/test_ssl.py", line 2186, in server_params_test s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_selected_npn_protocol (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 3228, in test_selected_npn_protocol chatty=True, connectionchatty=True) File "/tmp/xyz/Lib/test/test_ssl.py", line 2186, in server_params_test s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_sni_callback (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 3287, in test_sni_callback sni_name='supermessage') File "/tmp/xyz/Lib/test/test_ssl.py", line 2186, in server_params_test s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ======================================================================Exception in thread Thread-28: Traceback (most recent call last): File "/tmp/xyz/Lib/threading.py", line 914, in _bootstrap_inner self.run() File "/tmp/xyz/Lib/test/test_ssl.py", line 1928, in run if not self.wrap_conn(): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() OSError: [Errno 0] Error Exception in thread Thread-40: Traceback (most recent call last): File "/tmp/xyz/Lib/threading.py", line 914, in _bootstrap_inner self.run() File "/tmp/xyz/Lib/test/test_ssl.py", line 1928, in run if not self.wrap_conn(): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() OSError: [Errno 0] Error Exception in thread Thread-44: Traceback (most recent call last): File "/tmp/xyz/Lib/threading.py", line 914, in _bootstrap_inner self.run() File "/tmp/xyz/Lib/test/test_ssl.py", line 1928, in run if not self.wrap_conn(): File "/tmp/xyz/Lib/test/test_ssl.py", line 1873, in wrap_conn self.sock, server_side=True) File "/tmp/xyz/Lib/ssl.py", line 385, in wrap_socket _context=self) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() OSError: [Errno 0] Error test test_ssl failed ERROR: test_starttls (test.test_ssl.ThreadedTests) Switching from clear text to encrypted and back again. ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 2664, in test_starttls conn = ssl.wrap_socket(s, ssl_version=ssl.PROTOCOL_TLSv1) File "/tmp/xyz/Lib/ssl.py", line 1077, in wrap_socket ciphers=ciphers) File "/tmp/xyz/Lib/ssl.py", line 760, in __init__ self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_tls_unique_channel_binding (test.test_ssl.ThreadedTests) Test tls-unique channel binding. ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 3089, in test_tls_unique_channel_binding s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_version_basic (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 3047, in test_version_basic s.connect((HOST, server.port)) File "/tmp/xyz/Lib/ssl.py", line 1027, in connect self._real_connect(addr, False) File "/tmp/xyz/Lib/ssl.py", line 1018, in _real_connect self.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 996, in do_handshake self._sslobj.do_handshake() File "/tmp/xyz/Lib/ssl.py", line 641, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:728) ====================================================================== ERROR: test_wrong_cert (test.test_ssl.ThreadedTests) Connecting when the server rejects the client's certificate ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 2429, in test_wrong_cert ssl_version=ssl.PROTOCOL_TLSv1) as s: File "/tmp/xyz/Lib/ssl.py", line 1077, in wrap_socket ciphers=ciphers) File "/tmp/xyz/Lib/ssl.py", line 699, in __init__ self._context.load_cert_chain(certfile, keyfile) ssl.SSLError: [SSL: EE_KEY_TOO_SMALL] ee key too small (_ssl.c:2951) ====================================================================== FAIL: test_sni_callback_alert (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 3326, in test_sni_callback_alert self.assertEqual(cm.exception.reason, 'TLSV1_ALERT_ACCESS_DENIED') AssertionError: None != 'TLSV1_ALERT_ACCESS_DENIED' ====================================================================== FAIL: test_sni_callback_raising (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 3342, in test_sni_callback_raising self.assertEqual(cm.exception.reason, 'SSLV3_ALERT_HANDSHAKE_FAILURE') AssertionError: None != 'SSLV3_ALERT_HANDSHAKE_FAILURE' ====================================================================== FAIL: test_sni_callback_wrong_return_type (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/xyz/Lib/test/test_ssl.py", line 3360, in test_sni_callback_wrong_return_type self.assertEqual(cm.exception.reason, 'TLSV1_ALERT_INTERNAL_ERROR') AssertionError: None != 'TLSV1_ALERT_INTERNAL_ERROR' ---------------------------------------------------------------------- Ran 103 tests in 0.762s FAILED (failures=3, errors=24, skipped=11) 1 test failed: test_ssl Tests result: FAILURE