== CPython 3.6.11+ (heads/3.6:cfc7ff8d05, Jul 2 2020, 00:46:15) [GCC 9.3.0] == Linux-5.4.0-7634-generic-x86_64-with-debian-bullseye-sid little-endian == cwd: /tmp/threesixtrunk/build/test_python_568104 == CPU count: 64 == encodings: locale=UTF-8, FS=utf-8 Run tests sequentially 0:00:00 load avg: 1.72 [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_context_client_server (test.test_ssl.ContextTests) ... ok test_create_default_context (test.test_ssl.ContextTests) ... ok test_get_ca_certs (test.test_ssl.ContextTests) ... ok test_get_ciphers (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) ... ok test_load_verify_cadata (test.test_ssl.ContextTests) ... ok test_load_verify_locations (test.test_ssl.ContextTests) ... ok test_options (test.test_ssl.ContextTests) ... ok 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_connect_ex_error (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_sslwrap (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_bio_handshake (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 57144) Needed 2 calls to complete do_handshake(). server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None Needed 4 calls to complete unwrap(). ok test_bio_read_write_data (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 56620) Needed 2 calls to complete do_handshake(). Needed 1 calls to complete write(). server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None Needed 4 calls to complete read(). Needed 2 calls to complete unwrap(). ok test_ciphers (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 51232) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None server: new connection from ('127.0.0.1', 51234) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None ok test_connect (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 46668) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None server: new connection from ('127.0.0.1', 46670) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None Connection reset by peer: ('127.0.0.1', 46670) ok test_connect_cadata (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 47586) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None Connection reset by peer: ('127.0.0.1', 47586) server: new connection from ('127.0.0.1', 47588) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None ok test_connect_capath (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 51924) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None Connection reset by peer: ('127.0.0.1', 51924) server: new connection from ('127.0.0.1', 51926) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None ok test_connect_ex (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 35292) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None Connection reset by peer: ('127.0.0.1', 35292) ok test_connect_fail (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 60802) server: bad connection attempt from ('127.0.0.1', 60802): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:852) ok test_connect_with_context (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 36240) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None server: new connection from ('127.0.0.1', 36242) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None server: new connection from ('127.0.0.1', 36244) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None ok test_connect_with_context_fail (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 48092) server: bad connection attempt from ('127.0.0.1', 48092): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:852) ok test_context_setget (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 51264) server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256) server: selected protocol is now None ok test_get_ca_certs_capath (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 40990) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None ok test_get_server_certificate (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 50584) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None server: new connection from ('127.0.0.1', 50586) Verified certificate for 127.0.0.1:51337 is -----BEGIN CERTIFICATE----- MIIF8TCCBFmgAwIBAgIJAMstgJlaaVJcMA0GCSqGSIb3DQEBCwUAME0xCzAJBgNV BAYTAlhZMSYwJAYDVQQKDB1QeXRob24gU29mdHdhcmUgRm91bmRhdGlvbiBDQTEW MBQGA1UEAwwNb3VyLWNhLXNlcnZlcjAeFw0xODA4MjkxNDIzMTZaFw0yODA3MDcx NDIzMTZaMF8xCzAJBgNVBAYTAlhZMRcwFQYDVQQHDA5DYXN0bGUgQW50aHJheDEj MCEGA1UECgwaUHl0aG9uIFNvZnR3YXJlIEZvdW5kYXRpb24xEjAQBgNVBAMMCWxv Y2FsaG9zdDCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBAJ8oLzdB739k YxZiFukBFGIpyjqYkj0I015p/sDz1MT7DljcZLBLy7OqnkLpB5tnM8256DwdihPA 3zlnfEzTfr9DD0qFBW2H5cMCoz7X17koeRhzGDd3dkjUeBjXvR5qRosG8wM3lQug U7AizY+3Azaj1yN3mZ9K5a20jr58Kqinz+Xxx6sb2JfYYff2neJbBahNm5id0AD2 pi/TthZqO5DURJYo+MdgZOcy+7jEjOJsLWZd3Yzq78iM07qDjbpIoVpENZCTHTWA hX8LIqz0OBmh4weQpm4+plU7E4r4D82uauocWw8iyuznCTtABWO7n9fWySmf9QZC WYxHAFpBQs6zUVqAD7nhFdTqpQ9bRiaEnjE4HiAccPW+MAoSxFnv/rNzEzI6b4zU NspFMfg1aNVamdjxdpUZ1GG1Okf0yPJykqEX4PZl3La1Be2q7YZ1wydR523Xd+f3 EO4/g+imETSKn8gyCf6Rvib175L4r2WV1CXQH7gFwZYCod6WHYq5TQIDAQABo4IB wDCCAbwwFAYDVR0RBA0wC4IJbG9jYWxob3N0MA4GA1UdDwEB/wQEAwIFoDAdBgNV HSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDAYDVR0TAQH/BAIwADAdBgNVHQ4E FgQUj+od4zNcABazi29rb9NMy7XLfFUwfQYDVR0jBHYwdIAU3b/K2ubRNLo3dSHK b5oIKPI1tkihUaRPME0xCzAJBgNVBAYTAlhZMSYwJAYDVQQKDB1QeXRob24gU29m dHdhcmUgRm91bmRhdGlvbiBDQTEWMBQGA1UEAwwNb3VyLWNhLXNlcnZlcoIJAMst gJlaaVJbMIGDBggrBgEFBQcBAQR3MHUwPAYIKwYBBQUHMAKGMGh0dHA6Ly90ZXN0 Y2EucHl0aG9udGVzdC5uZXQvdGVzdGNhL3B5Y2FjZXJ0LmNlcjA1BggrBgEFBQcw AYYpaHR0cDovL3Rlc3RjYS5weXRob250ZXN0Lm5ldC90ZXN0Y2Evb2NzcC8wQwYD VR0fBDwwOjA4oDagNIYyaHR0cDovL3Rlc3RjYS5weXRob250ZXN0Lm5ldC90ZXN0 Y2EvcmV2b2NhdGlvbi5jcmwwDQYJKoZIhvcNAQELBQADggGBACf1jFkQ9MbnKAC/ uo17EwPxHKZfswZVpCK527LVRr33DN1DbrR5ZWchDCpV7kCOhZ+fR7sKKk22ZHSY oH+u3PEu20J3GOB1iyY1aMNB7WvId3JvappdVWkC/VpUyFfLsGUDFuIPADmZZqCb iJMX4loteTVfl1d4xK/1mV6Gq9MRrRqiDfpSELn+v53OM9mGspwW+NZ1CIrbCuW0 KxZ/tPkqn8PSd9fNZR70bB7rWbnwrl+kH8xKxLl6qdlrMmg74WWwhLeQxK7+9DdP IaDenzqx5cwWBGY/C0HcQj0gPuy3lSs1V/q+f7Y6uspPWP51PgiJLIywXS75iRAr +UFGTzwAtyfTZSQoFyMmMULqfk6T5HtoVMqfRvPvK+mFDLWEstU1NIB1K/CRI7gI AY65ClTU+zRS/tlF8IA7tsFvgtEf8jsI9kamlidhS1gyeg4dWcVErV4aeTPB1AUv StPYQkKNM+NjytWHl5tNuBoDNLsc0gI/WSPiI4CIY8LwomOoiw== -----END CERTIFICATE----- server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None ok test_get_server_certificate_fail (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 46542) [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852) server: bad connection attempt from ('127.0.0.1', 46542): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:852) ok test_makefile_close (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 41672) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None Connection reset by peer: ('127.0.0.1', 41672) ok test_non_blocking_connect_ex (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 47916) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None Connection reset by peer: ('127.0.0.1', 47916) ok test_non_blocking_handshake (test.test_ssl.SimpleBackgroundTests) ... server: new connection from ('127.0.0.1', 52718) Needed 2 calls to do_handshake() to establish session. server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None ok test_alpn_protocols (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 58948) 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. server: new connection from ('127.0.0.1', 46400) 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. server: new connection from ('127.0.0.1', 38558) 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. server: new connection from ('127.0.0.1', 59880) 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. ok test_asyncore_server (test.test_ssl.ThreadedTests) Check the example asyncore integration. ... server: new connection from 127.0.0.1:44426 client: sending b'FOO\n'... server: read b'FOO\n' from client client: read b'foo\n' client: closing connection. server: read b'over\n' from client client: connection closed. cleanup: stopping server. 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', 59402) server: bad connection attempt from ('127.0.0.1', 59402): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ERROR test_compression (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 59138) server: bad connection attempt from ('127.0.0.1', 59138): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ERROR test_compression_disabled (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 52022) server: bad connection attempt from ('127.0.0.1', 52022): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ERROR test_crl_check (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 48304) server: bad connection attempt from ('127.0.0.1', 48304): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ERROR test_default_ecdh_curve (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 42716) server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256) server: selected protocol is now None ok test_dh_params (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 44742) server: bad connection attempt from ('127.0.0.1', 44742): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) 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', 38142) 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', 42708) server: bad connection attempt from ('127.0.0.1', 42708): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) server: new connection from ('127.0.0.1', 60096) server: bad connection attempt from ('127.0.0.1', 60096): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) server: new connection from ('127.0.0.1', 58314) 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. server: new connection from ('127.0.0.1', 37848) 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', 58744) server: bad connection attempt from ('127.0.0.1', 58744): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] called a function you should not call (_ssl.c:852) server: new connection from ('127.0.0.1', 41822) server: bad connection attempt from ('127.0.0.1', 41822): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() OSError: [Errno 0] Error server: new connection from ('127.0.0.1', 49614) server: bad connection attempt from ('127.0.0.1', 49614): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] called a function you should not call (_ssl.c:852) 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_no_shared_ciphers (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 54090) server: bad connection attempt from ('127.0.0.1', 54090): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:852) ok test_nonblocking_send (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 52182) server: bad connection attempt from ('127.0.0.1', 52182): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ERROR test_npn_protocols (test.test_ssl.ThreadedTests) ... skipped 'NPN support needed for this test' 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', 57240) server: bad connection attempt from ('127.0.0.1', 57240): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ERROR test_recv_zero (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 50272) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None ok 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', 40196) server: bad connection attempt from ('127.0.0.1', 40196): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ERROR test_selected_alpn_protocol_if_server_uses_alpn (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 57786) server: bad connection attempt from ('127.0.0.1', 57786): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ERROR test_selected_npn_protocol (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 51740) server: bad connection attempt from ('127.0.0.1', 51740): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ERROR test_sendfile (test.test_ssl.ThreadedTests) ... ok test_server_accept (test.test_ssl.ThreadedTests) ... ok test_session (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 36986) server: bad connection attempt from ('127.0.0.1', 36986): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ERROR test_session_handling (test.test_ssl.ThreadedTests) ... ok test_shared_ciphers (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 39574) server: bad connection attempt from ('127.0.0.1', 39574): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ERROR test_sni_callback (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 37024) server: bad connection attempt from ('127.0.0.1', 37024): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) 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', 35557):35557 ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)): [02/Jul/2020 01:03:28] "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', 54752) 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', 54752): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ERROR test_tls1_3 (test.test_ssl.ThreadedTests) ... server: new connection from ('127.0.0.1', 41276) server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256) server: selected protocol is now None ok test_tls_unique_channel_binding (test.test_ssl.ThreadedTests) Test tls-unique channel binding. ... server: new connection from ('127.0.0.1', 39104) server: bad connection attempt from ('127.0.0.1', 39104): Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1921, in wrap_conn self.sock, server_side=True) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) 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 ... SSLError is SSLError(1, '[SSL] internal error (_ssl.c:852)') ok test_pha_no_pha_client (test.test_ssl.TestPostHandshakeAuth) ... ok test_pha_no_pha_server (test.test_ssl.TestPostHandshakeAuth) ... ok test_pha_not_tls13 (test.test_ssl.TestPostHandshakeAuth) ... ok test_pha_optional (test.test_ssl.TestPostHandshakeAuth) ... ok test_pha_optional_nocert (test.test_ssl.TestPostHandshakeAuth) ... ok test_pha_required (test.test_ssl.TestPostHandshakeAuth) ... ok test_pha_required_nocert (test.test_ssl.TestPostHandshakeAuth) ... ok test_pha_setter (test.test_ssl.TestPostHandshakeAuth) ... ok ====================================================================== ERROR: test_subclass (test.test_ssl.SSLErrorTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 1466, in test_subclass c.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_check_hostname (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2545, in test_check_hostname s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_compression (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 3326, in test_compression chatty=True, connectionchatty=True) File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2296, in server_params_test s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_compression_disabled (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 3338, in test_compression_disabled chatty=True, connectionchatty=True) File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2296, in server_params_test s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_crl_check (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2504, in test_crl_check s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_dh_params (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 3348, in test_dh_params chatty=True, connectionchatty=True) File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2296, in server_params_test s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== 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/threesixtrunk/Lib/test/test_ssl.py", line 2406, in test_echo chatty=True, connectionchatty=True) File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2296, in server_params_test s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== 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/threesixtrunk/Lib/test/test_ssl.py", line 2406, in test_echo chatty=True, connectionchatty=True) File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2296, in server_params_test s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_nonblocking_send (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 3069, in test_nonblocking_send s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_protocol_sslv23 (test.test_ssl.ThreadedTests) Connecting to an SSLv23 server with various client options ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 177, in f return func(*args, **kwargs) File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2682, in test_protocol_sslv23 try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_TLSv1, 'TLSv1') File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2371, in try_protocol_combo chatty=False, connectionchatty=False) File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2296, in server_params_test s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_protocol_tlsv1 (test.test_ssl.ThreadedTests) Connecting to a TLSv1 server with various client options ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2730, in test_protocol_tlsv1 try_protocol_combo(ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_TLSv1, 'TLSv1') File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2371, in try_protocol_combo chatty=False, connectionchatty=False) File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2296, in server_params_test s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== 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/threesixtrunk/Lib/test/test_ssl.py", line 177, in f return func(*args, **kwargs) File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2749, in test_protocol_tlsv1_1 try_protocol_combo(ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_TLSv1_1, 'TLSv1.1') File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2371, in try_protocol_combo chatty=False, connectionchatty=False) File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2296, in server_params_test s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_recv_send (test.test_ssl.ThreadedTests) Test recv(), send() and friends. ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2917, in test_recv_send s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_selected_alpn_protocol (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 3359, in test_selected_alpn_protocol chatty=True, connectionchatty=True) File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2296, in server_params_test s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_selected_alpn_protocol_if_server_uses_alpn (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 3371, in test_selected_alpn_protocol_if_server_uses_alpn chatty=True, connectionchatty=True) File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2296, in server_params_test s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_selected_npn_protocol (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 3421, in test_selected_npn_protocol chatty=True, connectionchatty=True) File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2296, in server_params_test s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_session (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 3626, in test_session stats = server_params_test(client_context, server_context) File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2296, in server_params_test s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_shared_ciphers (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 3579, in test_shared_ciphers stats = server_params_test(client_context, server_context) File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2296, in server_params_test s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_sni_callback (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 3480, in test_sni_callback sni_name='supermessage') File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 2296, in server_params_test s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) 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/threesixtrunk/Lib/test/test_ssl.py", line 2819, in test_starttls conn = test_wrap_socket(s, ssl_version=ssl.PROTOCOL_TLSv1) File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 197, in test_wrap_socket return context.wrap_socket(sock, **kwargs) File "/tmp/threesixtrunk/Lib/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/tmp/threesixtrunk/Lib/ssl.py", line 817, in __init__ self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_tls_unique_channel_binding (test.test_ssl.ThreadedTests) Test tls-unique channel binding. ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 3282, in test_tls_unique_channel_binding s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== ERROR: test_version_basic (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 3220, in test_version_basic s.connect((HOST, server.port)) File "/tmp/threesixtrunk/Lib/ssl.py", line 1109, in connect self._real_connect(addr, False) File "/tmp/threesixtrunk/Lib/ssl.py", line 1100, in _real_connect self.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/tmp/threesixtrunk/Lib/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL] internal error (_ssl.c:852) ====================================================================== FAIL: test_sni_callback_alert (test.test_ssl.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/threesixtrunk/Lib/test/test_ssl.py", line 3519, 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/threesixtrunk/Lib/test/test_ssl.py", line 3535, 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/threesixtrunk/Lib/test/test_ssl.py", line 3553, in test_sni_callback_wrong_return_type self.assertEqual(cm.exception.reason, 'TLSV1_ALERT_INTERNAL_ERROR') AssertionError: None != 'TLSV1_ALERT_INTERNAL_ERROR' ---------------------------------------------------------------------- Ran 134 tests in 1.288s FAILED (failures=3, errors=22, skipped=7) test_ssl failed == Tests result: FAILURE == 1 test failed: test_ssl Total duration: 1 sec 338 ms Tests result: FAILURE