Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

lib-python/3/test/test_ssl.py::unmodified

== PyPy 3.11.15 (f0ba547da91c, Jul 01 2026, 01:31:07) [PyPy 7.3.24-alpha0 with GCC Apple LLVM 16.0.0 (clang-1600.0.26.6)]
== macOS-15.7.7-arm64-arm-64bit little-endian
== Python build: release with_assert
== cwd: /private/tmp/buildbot-arm64/pytest/test_python_worker_47910æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 3070598122
Raised RLIMIT_NOFILE: 256 -> 1024
0:00:00 load avg: 1.96 Run 1 test sequentially
0:00:00 load avg: 1.96 [1/1] test_ssl
test_ssl: testing with 'OpenSSL 3.3.1 4 Jun 2024' (3, 3, 0, 1, 0)
          under Mac ('15.7.7', ('', '', ''), 'arm64')
          HAS_SNI = True
          OP_ALL = 0x80000050
          OP_NO_TLSv1_1 = 0x10000000
test_DER_to_PEM (test.test_ssl.BasicSocketTests.test_DER_to_PEM) ... ok
test_asn1object (test.test_ssl.BasicSocketTests.test_asn1object) ... ok
test_cert_time_to_seconds (test.test_ssl.BasicSocketTests.test_cert_time_to_seconds) ... ok
test_cert_time_to_seconds_locale (test.test_ssl.BasicSocketTests.test_cert_time_to_seconds_locale) ... skipped 'locale-specific month name needs to be different from C locale'
test_cert_time_to_seconds_timezone (test.test_ssl.BasicSocketTests.test_cert_time_to_seconds_timezone) ... ok
test_connect_ex_error (test.test_ssl.BasicSocketTests.test_connect_ex_error) ... ok
test_constants (test.test_ssl.BasicSocketTests.test_constants) ... ok
test_dealloc_warn (test.test_ssl.BasicSocketTests.test_dealloc_warn) ... ok
test_empty_cert (test.test_ssl.BasicSocketTests.test_empty_cert)
Wrapping with an empty cert file ... ok
test_enum_certificates (test.test_ssl.BasicSocketTests.test_enum_certificates) ... skipped 'Windows specific'
test_enum_crls (test.test_ssl.BasicSocketTests.test_enum_crls) ... skipped 'Windows specific'
test_errors_sslwrap (test.test_ssl.BasicSocketTests.test_errors_sslwrap) ... ok
test_get_default_verify_paths (test.test_ssl.BasicSocketTests.test_get_default_verify_paths) ... ok
test_malformed_cert (test.test_ssl.BasicSocketTests.test_malformed_cert)
Wrapping with a badly formatted certificate (syntax error) ... ok
test_malformed_key (test.test_ssl.BasicSocketTests.test_malformed_key)
Wrapping with a badly formatted key (syntax error) ... ok
test_match_hostname (test.test_ssl.BasicSocketTests.test_match_hostname) ... ok
test_openssl111_deprecations (test.test_ssl.BasicSocketTests.test_openssl111_deprecations) ... ok
test_openssl_version (test.test_ssl.BasicSocketTests.test_openssl_version) ... ok
test_options (test.test_ssl.BasicSocketTests.test_options) ... ok
test_parse_all_sans (test.test_ssl.BasicSocketTests.test_parse_all_sans) ... ok
test_parse_cert (test.test_ssl.BasicSocketTests.test_parse_cert) ... 
{'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.test_parse_cert_CVE_2013_4238) ... 
{'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')),
 'version': 3}
ok
test_parse_cert_CVE_2019_5010 (test.test_ssl.BasicSocketTests.test_parse_cert_CVE_2019_5010) ... 
{'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_private_init (test.test_ssl.BasicSocketTests.test_private_init) ... ok
test_purpose_enum (test.test_ssl.BasicSocketTests.test_purpose_enum) ... ok
test_random (test.test_ssl.BasicSocketTests.test_random) ... 
 RAND_status is 1 (sufficient randomness)
ok
test_read_write_zero (test.test_ssl.BasicSocketTests.test_read_write_zero) ...  server:  new connection from ('127.0.0.1', 56820)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_refcycle (test.test_ssl.BasicSocketTests.test_refcycle) ... skipped 'implementation detail specific to cpython'
test_server_side (test.test_ssl.BasicSocketTests.test_server_side) ... ok
test_ssl_types (test.test_ssl.BasicSocketTests.test_ssl_types) ... skipped 'implementation detail specific to cpython'
test_str_for_enums (test.test_ssl.BasicSocketTests.test_str_for_enums) ... skipped 'pypy repr(IntEnum) is wrong'
test_timeout (test.test_ssl.BasicSocketTests.test_timeout) ... ok
test_tls_unique_channel_binding (test.test_ssl.BasicSocketTests.test_tls_unique_channel_binding) ... ok
test_unknown_channel_binding (test.test_ssl.BasicSocketTests.test_unknown_channel_binding) ... ok
test_unsupported_dtls (test.test_ssl.BasicSocketTests.test_unsupported_dtls) ... ok
test_wrapped_unconnected (test.test_ssl.BasicSocketTests.test_wrapped_unconnected) ... ok
test__create_stdlib_context (test.test_ssl.ContextTests.test__create_stdlib_context) ... ok
test_cert_store_stats (test.test_ssl.ContextTests.test_cert_store_stats) ... ok
test_check_hostname (test.test_ssl.ContextTests.test_check_hostname) ... ok
test_ciphers (test.test_ssl.ContextTests.test_ciphers) ... ok
test_constructor (test.test_ssl.ContextTests.test_constructor) ... ok
test_context_client_server (test.test_ssl.ContextTests.test_context_client_server) ... ok
test_context_custom_class (test.test_ssl.ContextTests.test_context_custom_class) ... ok
test_create_default_context (test.test_ssl.ContextTests.test_create_default_context) ... ok
test_get_ca_certs (test.test_ssl.ContextTests.test_get_ca_certs) ... ok
test_get_ciphers (test.test_ssl.ContextTests.test_get_ciphers) ... ok
test_hostname_checks_common_name (test.test_ssl.ContextTests.test_hostname_checks_common_name) ... ok
test_load_cert_chain (test.test_ssl.ContextTests.test_load_cert_chain) ... ok
test_load_default_certs (test.test_ssl.ContextTests.test_load_default_certs) ... ok
test_load_default_certs_env (test.test_ssl.ContextTests.test_load_default_certs_env) ... ok
test_load_default_certs_env_windows (test.test_ssl.ContextTests.test_load_default_certs_env_windows) ... skipped 'Windows specific'
test_load_dh_params (test.test_ssl.ContextTests.test_load_dh_params) ... ok
test_load_verify_cadata (test.test_ssl.ContextTests.test_load_verify_cadata) ... ok
test_load_verify_locations (test.test_ssl.ContextTests.test_load_verify_locations) ... ok
test_min_max_version (test.test_ssl.ContextTests.test_min_max_version) ... ok
test_num_tickest (test.test_ssl.ContextTests.test_num_tickest) ... ok
test_options (test.test_ssl.ContextTests.test_options) ... ok
test_python_ciphers (test.test_ssl.ContextTests.test_python_ciphers) ... skipped 'Test applies only to Python default ciphers'
test_security_level (test.test_ssl.ContextTests.test_security_level) ... skipped 'requires OpenSSL >= 1.1.0'
test_session_stats (test.test_ssl.ContextTests.test_session_stats) ... ok
test_set_default_verify_paths (test.test_ssl.ContextTests.test_set_default_verify_paths) ... ok
test_set_ecdh_curve (test.test_ssl.ContextTests.test_set_ecdh_curve) ... ok
test_sni_callback (test.test_ssl.ContextTests.test_sni_callback) ... ok
test_sni_callback_refcycle (test.test_ssl.ContextTests.test_sni_callback_refcycle) ... ok
test_verify_flags (test.test_ssl.ContextTests.test_verify_flags) ... ok
test_verify_mode_protocol (test.test_ssl.ContextTests.test_verify_mode_protocol) ... ok
test_buffer_types (test.test_ssl.MemoryBIOTests.test_buffer_types) ... ok
test_eof (test.test_ssl.MemoryBIOTests.test_eof) ... ok
test_error_types (test.test_ssl.MemoryBIOTests.test_error_types) ... ok
test_pending (test.test_ssl.MemoryBIOTests.test_pending) ... ok
test_read_write (test.test_ssl.MemoryBIOTests.test_read_write) ... ok
test_get_server_certificate_ipv6 (test.test_ssl.NetworkedTests.test_get_server_certificate_ipv6) ... skipped "resource 'walltime' is not enabled"
test_timeout_connect_ex (test.test_ssl.NetworkedTests.test_timeout_connect_ex) ... ok
test_bad_server_hostname (test.test_ssl.SSLErrorTests.test_bad_server_hostname) ... ok
test_lib_reason (test.test_ssl.SSLErrorTests.test_lib_reason) ... ok
test_str (test.test_ssl.SSLErrorTests.test_str) ... ok
test_subclass (test.test_ssl.SSLErrorTests.test_subclass) ... ok
test_private_init (test.test_ssl.SSLObjectTests.test_private_init) ... ok
test_unwrap (test.test_ssl.SSLObjectTests.test_unwrap) ... ok
test_bio_handshake (test.test_ssl.SimpleBackgroundTests.test_bio_handshake) ...  server:  new connection from ('127.0.0.1', 56827)
Needed 2 calls to complete do_handshake().
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
Needed 3 calls to complete unwrap().
 connection timeout TimeoutError('timed out')
ok
test_bio_read_write_data (test.test_ssl.SimpleBackgroundTests.test_bio_read_write_data) ...  server:  new connection from ('127.0.0.1', 56829)
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)
Needed 3 calls to complete read().
Needed 2 calls to complete unwrap().
ok
test_ciphers1 (test.test_ssl.SimpleBackgroundTests.test_ciphers1) ...  server:  new connection from ('127.0.0.1', 56831)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_ciphers2 (test.test_ssl.SimpleBackgroundTests.test_ciphers2) ...  server:  new connection from ('127.0.0.1', 56833)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_ciphers3 (test.test_ssl.SimpleBackgroundTests.test_ciphers3) ...  connection timeout TimeoutError('timed out')
ok
test_connect1 (test.test_ssl.SimpleBackgroundTests.test_connect1) ...  server:  new connection from ('127.0.0.1', 56836)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_connect2 (test.test_ssl.SimpleBackgroundTests.test_connect2) ...  server:  new connection from ('127.0.0.1', 56838)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_connect_cadata1 (test.test_ssl.SimpleBackgroundTests.test_connect_cadata1) ...  server:  new connection from ('127.0.0.1', 56840)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_connect_cadata2 (test.test_ssl.SimpleBackgroundTests.test_connect_cadata2) ...  server:  new connection from ('127.0.0.1', 56842)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_connect_capath1 (test.test_ssl.SimpleBackgroundTests.test_connect_capath1) ...  server:  new connection from ('127.0.0.1', 56844)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_connect_capath2 (test.test_ssl.SimpleBackgroundTests.test_connect_capath2) ...  server:  new connection from ('127.0.0.1', 56846)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_connect_ex (test.test_ssl.SimpleBackgroundTests.test_connect_ex) ...  server:  new connection from ('127.0.0.1', 56848)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_connect_fail (test.test_ssl.SimpleBackgroundTests.test_connect_fail) ...  server:  new connection from ('127.0.0.1', 56850)

 server:  bad connection attempt from ('127.0.0.1', 56850):
Traceback (most recent call last):
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2503, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1104, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1404, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca
ok
test_connect_with_context_0 (test.test_ssl.SimpleBackgroundTests.test_connect_with_context_0) ...  server:  new connection from ('127.0.0.1', 56852)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_connect_with_context_1 (test.test_ssl.SimpleBackgroundTests.test_connect_with_context_1) ...  server:  new connection from ('127.0.0.1', 56854)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_connect_with_context_2 (test.test_ssl.SimpleBackgroundTests.test_connect_with_context_2) ...  server:  new connection from ('127.0.0.1', 56856)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_connect_with_context_fail (test.test_ssl.SimpleBackgroundTests.test_connect_with_context_fail) ...  server:  new connection from ('127.0.0.1', 56858)

 server:  bad connection attempt from ('127.0.0.1', 56858):
Traceback (most recent call last):
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2503, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1104, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1404, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca
ok
test_context_setget (test.test_ssl.SimpleBackgroundTests.test_context_setget) ...  server:  new connection from ('127.0.0.1', 56860)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_get_ca_certs_capath (test.test_ssl.SimpleBackgroundTests.test_get_ca_certs_capath) ...  server:  new connection from ('127.0.0.1', 56862)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_get_server_certificate (test.test_ssl.SimpleBackgroundTests.test_get_server_certificate) ...  server:  new connection from ('127.0.0.1', 56865)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 56867)

Verified certificate for localhost:56863 is
-----BEGIN CERTIFICATE-----
MIIF8TCCBFmgAwIBAgIJAMstgJlaaVJcMA0GCSqGSIb3DQEBCwUAME0xCzAJBgNV
BAYTAlhZMSYwJAYDVQQKDB1QeXRob24gU29mdHdhcmUgRm91bmRhdGlvbiBDQTEW
MBQGA1UEAwwNb3VyLWNhLXNlcnZlcjAeFw0xODA4MjkxNDIzMTZaFw0zNzEwMjgx
NDIzMTZaMF8xCzAJBgNVBAYTAlhZMRcwFQYDVQQHDA5DYXN0bGUgQW50aHJheDEj
MCEGA1UECgwaUHl0aG9uIFNvZnR3YXJlIEZvdW5kYXRpb24xEjAQBgNVBAMMCWxv
Y2FsaG9zdDCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBAMW0s615CVCi
M3vO2S7HubSGYYqQ/WGHSFsqpNwPzuOQsCoDBlZ6eNkyMJttne8/4A5sIiRggrM9
djtiL4fkzc7aZcgPGgcaMv8Za2gTIM1e+b1QL4xG5I6rYxoscdAbRHHZPFxisxVQ
ztv3euk3UsZGsK/WAhJczgS8QmigBHsBp2PSkb+jR+oMB0WMfpBluGfWJmV754Zu
Nx92Af8fQXx2fU88ahWIdeJxuxDiQHrTTY9/5pc/hvZAoBt+XI0cQoc8cQ45NesW
Mx1z5uopbbh6kSwxkjn2rH2FT/hG+nf+/68TBMvs2buKWm3NmfZy8YJbf0sLSc1g
s7OQ7cfzHADvmHq7KR0H5Y7+/YIogr0z9k771A2uZqiR8oNqYKTf1vyGULA0voux
Wm93ddNLlafhhaf3YSqKW1Qkmg+julztVN1YKDjNUWfhDxmHg0U2f+pMHyUQyCuw
1NXlzJnvOGgGJQxI7jluajY2ycTtx78lSGWp7m6HQ9PUwgGBNX6gMwIDAQABo4IB
wDCCAbwwFAYDVR0RBA0wC4IJbG9jYWxob3N0MA4GA1UdDwEB/wQEAwIFoDAdBgNV
HSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDAYDVR0TAQH/BAIwADAdBgNVHQ4E
FgQUhXUQJdAsgFAkGltXcN61y3GpO3swfQYDVR0jBHYwdIAUs4qgorpx8agkedSk
WyU2FR5JyM2hUaRPME0xCzAJBgNVBAYTAlhZMSYwJAYDVQQKDB1QeXRob24gU29m
dHdhcmUgRm91bmRhdGlvbiBDQTEWMBQGA1UEAwwNb3VyLWNhLXNlcnZlcoIJAMst
gJlaaVJbMIGDBggrBgEFBQcBAQR3MHUwPAYIKwYBBQUHMAKGMGh0dHA6Ly90ZXN0
Y2EucHl0aG9udGVzdC5uZXQvdGVzdGNhL3B5Y2FjZXJ0LmNlcjA1BggrBgEFBQcw
AYYpaHR0cDovL3Rlc3RjYS5weXRob250ZXN0Lm5ldC90ZXN0Y2Evb2NzcC8wQwYD
VR0fBDwwOjA4oDagNIYyaHR0cDovL3Rlc3RjYS5weXRob250ZXN0Lm5ldC90ZXN0
Y2EvcmV2b2NhdGlvbi5jcmwwDQYJKoZIhvcNAQELBQADggGBAJXzVrvVjHC90d7a
Y7Ap19tgJ9ZZ/WEbMMbQXXN9NOFo4yimieZgvYnTDvRyrXJ2+IYh/XU8+G2+nATh
ggNpbK7QVbpe8sr1D47W2Y3IVkb0+Kx0Khl7jkdwH/v7vWkCoaVKbiEcBBQVVb+/
JEPIFwO+Pizq28ivHf1S39YVSZ7CRGnv8UVDg7IezxQcEz/+nHHL5xsYVjanr0Tx
C6F5REb5Q0Yp2LDKSU1lYNP2jnS8Yp4ejUspmrQN8KJ3WzTkES+nJcXlB3YSrr51
cxXkCn1TOFY/eW1uyu2Aq1btfosc5+PUYjAicOcpsgM8/vo98DbATRGimdMpMSe4
xbgVozxPm3NeK7L7y/11R7gXvSHY5sG5/3OB2CUIbQheHKWDUN5n5trQjlrT8iqx
P7iAIQdqcRVtBetRs1mN1BVGfgKoEwEWmb0DzHBxKiMWeK/R1QGdBLRjk5oEOpIu
5n5zk6X+UJu9DupUhm985RR3/sIoWkoO1y2M6e1hKbJT/2wEvA==
-----END CERTIFICATE-----

 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_get_server_certificate_fail (test.test_ssl.SimpleBackgroundTests.test_get_server_certificate_fail) ...  server:  new connection from ('127.0.0.1', 56870)
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

 server:  bad connection attempt from ('127.0.0.1', 56870):
Traceback (most recent call last):
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2503, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1104, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1404, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca
 connection timeout TimeoutError('timed out')
ok
test_get_server_certificate_sni (test.test_ssl.SimpleBackgroundTests.test_get_server_certificate_sni) ...  server:  new connection from ('127.0.0.1', 56873)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 56875)

Verified certificate for localhost:56871 is
-----BEGIN CERTIFICATE-----
MIIF8TCCBFmgAwIBAgIJAMstgJlaaVJcMA0GCSqGSIb3DQEBCwUAME0xCzAJBgNV
BAYTAlhZMSYwJAYDVQQKDB1QeXRob24gU29mdHdhcmUgRm91bmRhdGlvbiBDQTEW
MBQGA1UEAwwNb3VyLWNhLXNlcnZlcjAeFw0xODA4MjkxNDIzMTZaFw0zNzEwMjgx
NDIzMTZaMF8xCzAJBgNVBAYTAlhZMRcwFQYDVQQHDA5DYXN0bGUgQW50aHJheDEj
MCEGA1UECgwaUHl0aG9uIFNvZnR3YXJlIEZvdW5kYXRpb24xEjAQBgNVBAMMCWxv
Y2FsaG9zdDCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBAMW0s615CVCi
M3vO2S7HubSGYYqQ/WGHSFsqpNwPzuOQsCoDBlZ6eNkyMJttne8/4A5sIiRggrM9
djtiL4fkzc7aZcgPGgcaMv8Za2gTIM1e+b1QL4xG5I6rYxoscdAbRHHZPFxisxVQ
ztv3euk3UsZGsK/WAhJczgS8QmigBHsBp2PSkb+jR+oMB0WMfpBluGfWJmV754Zu
Nx92Af8fQXx2fU88ahWIdeJxuxDiQHrTTY9/5pc/hvZAoBt+XI0cQoc8cQ45NesW
Mx1z5uopbbh6kSwxkjn2rH2FT/hG+nf+/68TBMvs2buKWm3NmfZy8YJbf0sLSc1g
s7OQ7cfzHADvmHq7KR0H5Y7+/YIogr0z9k771A2uZqiR8oNqYKTf1vyGULA0voux
Wm93ddNLlafhhaf3YSqKW1Qkmg+julztVN1YKDjNUWfhDxmHg0U2f+pMHyUQyCuw
1NXlzJnvOGgGJQxI7jluajY2ycTtx78lSGWp7m6HQ9PUwgGBNX6gMwIDAQABo4IB
wDCCAbwwFAYDVR0RBA0wC4IJbG9jYWxob3N0MA4GA1UdDwEB/wQEAwIFoDAdBgNV
HSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDAYDVR0TAQH/BAIwADAdBgNVHQ4E
FgQUhXUQJdAsgFAkGltXcN61y3GpO3swfQYDVR0jBHYwdIAUs4qgorpx8agkedSk
WyU2FR5JyM2hUaRPME0xCzAJBgNVBAYTAlhZMSYwJAYDVQQKDB1QeXRob24gU29m
dHdhcmUgRm91bmRhdGlvbiBDQTEWMBQGA1UEAwwNb3VyLWNhLXNlcnZlcoIJAMst
gJlaaVJbMIGDBggrBgEFBQcBAQR3MHUwPAYIKwYBBQUHMAKGMGh0dHA6Ly90ZXN0
Y2EucHl0aG9udGVzdC5uZXQvdGVzdGNhL3B5Y2FjZXJ0LmNlcjA1BggrBgEFBQcw
AYYpaHR0cDovL3Rlc3RjYS5weXRob250ZXN0Lm5ldC90ZXN0Y2Evb2NzcC8wQwYD
VR0fBDwwOjA4oDagNIYyaHR0cDovL3Rlc3RjYS5weXRob250ZXN0Lm5ldC90ZXN0
Y2EvcmV2b2NhdGlvbi5jcmwwDQYJKoZIhvcNAQELBQADggGBAJXzVrvVjHC90d7a
Y7Ap19tgJ9ZZ/WEbMMbQXXN9NOFo4yimieZgvYnTDvRyrXJ2+IYh/XU8+G2+nATh
ggNpbK7QVbpe8sr1D47W2Y3IVkb0+Kx0Khl7jkdwH/v7vWkCoaVKbiEcBBQVVb+/
JEPIFwO+Pizq28ivHf1S39YVSZ7CRGnv8UVDg7IezxQcEz/+nHHL5xsYVjanr0Tx
C6F5REb5Q0Yp2LDKSU1lYNP2jnS8Yp4ejUspmrQN8KJ3WzTkES+nJcXlB3YSrr51
cxXkCn1TOFY/eW1uyu2Aq1btfosc5+PUYjAicOcpsgM8/vo98DbATRGimdMpMSe4
xbgVozxPm3NeK7L7y/11R7gXvSHY5sG5/3OB2CUIbQheHKWDUN5n5trQjlrT8iqx
P7iAIQdqcRVtBetRs1mN1BVGfgKoEwEWmb0DzHBxKiMWeK/R1QGdBLRjk5oEOpIu
5n5zk6X+UJu9DupUhm985RR3/sIoWkoO1y2M6e1hKbJT/2wEvA==
-----END CERTIFICATE-----

 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_get_server_certificate_timeout (test.test_ssl.SimpleBackgroundTests.test_get_server_certificate_timeout) ...  server:  new connection from ('127.0.0.1', 56878)

 server:  bad connection attempt from ('127.0.0.1', 56878):
Traceback (most recent call last):
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2503, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1104, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1404, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ConnectionResetError: [Errno 54] Connection reset by peer
ok
test_makefile_close (test.test_ssl.SimpleBackgroundTests.test_makefile_close) ...  server:  new connection from ('127.0.0.1', 56880)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 connection timeout TimeoutError('timed out')
ok
test_non_blocking_connect_ex (test.test_ssl.SimpleBackgroundTests.test_non_blocking_connect_ex) ...  server:  new connection from ('127.0.0.1', 56882)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_non_blocking_handshake (test.test_ssl.SimpleBackgroundTests.test_non_blocking_handshake) ...  server:  new connection from ('127.0.0.1', 56884)

Needed 2 calls to do_handshake() to establish session.
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_transport_eof (test.test_ssl.SimpleBackgroundTests.test_transport_eof) ...  server:  new connection from ('127.0.0.1', 56886)
Needed 2 calls to complete do_handshake().
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_alertdescription (test.test_ssl.TestEnumerations.test_alertdescription) ... ok
test_options (test.test_ssl.TestEnumerations.test_options) ... ok
test_sslerrornumber (test.test_ssl.TestEnumerations.test_sslerrornumber) ... ok
test_sslmethod (test.test_ssl.TestEnumerations.test_sslmethod) ... ok
test_tlsalerttype (test.test_ssl.TestEnumerations.test_tlsalerttype) ... ok
test_tlscontenttype (test.test_ssl.TestEnumerations.test_tlscontenttype) ... ok
test_tlsmessagetype (test.test_ssl.TestEnumerations.test_tlsmessagetype) ... ok
test_tlsversion (test.test_ssl.TestEnumerations.test_tlsversion) ... ok
test_verifyflags (test.test_ssl.TestEnumerations.test_verifyflags) ... ok
test_verifymode (test.test_ssl.TestEnumerations.test_verifymode) ... ok
test_bpo37428_pha_cert_none (test.test_ssl.TestPostHandshakeAuth.test_bpo37428_pha_cert_none) ... ok
test_internal_chain_client (test.test_ssl.TestPostHandshakeAuth.test_internal_chain_client) ... ok
test_internal_chain_server (test.test_ssl.TestPostHandshakeAuth.test_internal_chain_server) ... ok
test_pha_no_pha_client (test.test_ssl.TestPostHandshakeAuth.test_pha_no_pha_client) ... ok
test_pha_no_pha_server (test.test_ssl.TestPostHandshakeAuth.test_pha_no_pha_server) ... ok
test_pha_not_tls13 (test.test_ssl.TestPostHandshakeAuth.test_pha_not_tls13) ... ok
test_pha_optional (test.test_ssl.TestPostHandshakeAuth.test_pha_optional) ... 
ok
test_pha_optional_nocert (test.test_ssl.TestPostHandshakeAuth.test_pha_optional_nocert) ... 
ok
test_pha_required (test.test_ssl.TestPostHandshakeAuth.test_pha_required) ... ok
test_pha_required_nocert (test.test_ssl.TestPostHandshakeAuth.test_pha_required_nocert) ...  server:  new connection from ('127.0.0.1', 56906)
 client cert is None
 client did not provide a cert
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
TLS: (<ssl.SSLSocket fd=14, family=2, type=1, proto=0, laddr=('127.0.0.1', 56905), raddr=('127.0.0.1', 56906)>, 'write', <TLSVersion.TLSv1_3: 772>, <_TLSContentType.ALERT: 21>, <_TLSAlertType.CERTIFICATE_REQUIRED: 116>, b'\x02t')
TLS: (<ssl.SSLSocket fd=12, family=2, type=1, proto=0, laddr=('127.0.0.1', 56906), raddr=('127.0.0.1', 56905)>, 'read', <TLSVersion.TLSv1_3: 772>, <_TLSContentType.ALERT: 21>, <_TLSAlertType.CERTIFICATE_REQUIRED: 116>, b'\x02t')
Test server failure:
Traceback (most recent call last):
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2587, in run
    msg = self.read()
               ^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2564, in read
    return self.sslconn.read()
                        ^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1168, in read
    return self._sslobj.read(len)
                        ^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 660, in read
    return self._read_no_buf(length)
                ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 717, in _read_no_buf
    raise pyssl_error(self, retval)
 ssl.SSLError: [SSL: PEER_DID_NOT_RETURN_A_CERTIFICATE] peer did not return a certificate
ok
test_pha_setter (test.test_ssl.TestPostHandshakeAuth.test_pha_setter) ... ok
test_https_client_non_tls_response_ignored (test.test_ssl.TestPreHandshakeClose.test_https_client_non_tls_response_ignored) ... ok
test_preauth_data_to_tls_client (test.test_ssl.TestPreHandshakeClose.test_preauth_data_to_tls_client) ... skipped "Could not recreate conditions on darwin: err=OSError(22, 'Invalid argument')"
test_preauth_data_to_tls_server (test.test_ssl.TestPreHandshakeClose.test_preauth_data_to_tls_server) ... ERROR
test_keylog_defaults (test.test_ssl.TestSSLDebug.test_keylog_defaults) ... ok
test_keylog_env (test.test_ssl.TestSSLDebug.test_keylog_env) ... ok
test_keylog_filename (test.test_ssl.TestSSLDebug.test_keylog_filename) ... ok
test_msg_callback (test.test_ssl.TestSSLDebug.test_msg_callback) ... ok
test_msg_callback_deadlock_bpo43577 (test.test_ssl.TestSSLDebug.test_msg_callback_deadlock_bpo43577) ... ok
test_msg_callback_tls12 (test.test_ssl.TestSSLDebug.test_msg_callback_tls12) ... ok
test_PROTOCOL_TLS (test.test_ssl.ThreadedTests.test_PROTOCOL_TLS)
Connecting to an SSLv23 server with various client options ... 
 PROTOCOL_TLS->PROTOCOL_TLS CERT_NONE
 PROTOCOL_TLS->PROTOCOL_TLS CERT_OPTIONAL
 PROTOCOL_TLS->PROTOCOL_TLS CERT_REQUIRED
 connection timeout TimeoutError('timed out')
 PROTOCOL_TLS->PROTOCOL_TLS CERT_NONE
ok
test_alpn_protocols (test.test_ssl.ThreadedTests.test_alpn_protocols) ...  server:  new connection from ('127.0.0.1', 56933)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 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.
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 56935)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 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', 56937)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 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.
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 56939)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 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.
 connection timeout TimeoutError('timed out')
ok
test_asyncore_server (test.test_ssl.ThreadedTests.test_asyncore_server)
Check the example asyncore integration. ... 
 server:  new connection from 127.0.0.1:56941
 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.
 cleanup: joining server thread.
 cleanup: successfully joined.
ok
test_check_hostname (test.test_ssl.ThreadedTests.test_check_hostname) ... 
 server:  new connection from ('127.0.0.1', 56943)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 56945)

 server:  bad connection attempt from ('127.0.0.1', 56945):
Traceback (most recent call last):
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2503, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1104, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1404, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] ssl/tls alert bad certificate
 connection timeout TimeoutError('timed out')
ok
test_check_hostname_idn (test.test_ssl.ThreadedTests.test_check_hostname_idn) ... 
 server:  new connection from ('127.0.0.1', 56948)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 56950)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 56952)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 56954)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 56956)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 56958)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 56960)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 56962)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 56964)

 server:  bad connection attempt from ('127.0.0.1', 56964):
Traceback (most recent call last):
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2503, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1104, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1404, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] ssl/tls alert bad certificate
 connection timeout TimeoutError('timed out')
 connection timeout TimeoutError('timed out')
ok
test_compression (test.test_ssl.ThreadedTests.test_compression) ...  server:  new connection from ('127.0.0.1', 56968)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 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.
 got compression: None
ok
test_compression_disabled (test.test_ssl.ThreadedTests.test_compression_disabled) ...  server:  new connection from ('127.0.0.1', 56970)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 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.
 connection timeout TimeoutError('timed out')
ok
test_crl_check (test.test_ssl.ThreadedTests.test_crl_check) ... 
 server:  new connection from ('127.0.0.1', 56972)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 56974)

 server:  bad connection attempt from ('127.0.0.1', 56974):
Traceback (most recent call last):
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2503, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1104, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1404, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca
 server:  new connection from ('127.0.0.1', 56976)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_default_ecdh_curve (test.test_ssl.ThreadedTests.test_default_ecdh_curve) ...  server:  new connection from ('127.0.0.1', 56978)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
ok
test_dh_params (test.test_ssl.ThreadedTests.test_dh_params) ...  server:  new connection from ('127.0.0.1', 56980)
 server: connection cipher is now ('DHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
 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_do_handshake_enotconn (test.test_ssl.ThreadedTests.test_do_handshake_enotconn) ... ok
test_dual_rsa_ecc (test.test_ssl.ThreadedTests.test_dual_rsa_ecc) ...  server:  new connection from ('127.0.0.1', 56982)
 server: connection cipher is now ('ECDHE-ECDSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
ok
test_ecc_cert (test.test_ssl.ThreadedTests.test_ecc_cert) ...  server:  new connection from ('127.0.0.1', 56984)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_ecdh_curve (test.test_ssl.ThreadedTests.test_ecdh_curve) ...  server:  new connection from ('127.0.0.1', 56986)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 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.
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 56988)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 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.
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 56990)

 server:  bad connection attempt from ('127.0.0.1', 56990):
Traceback (most recent call last):
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2503, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1104, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1404, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: NO_SUITABLE_KEY_SHARE] no suitable key share
ok
test_echo (test.test_ssl.ThreadedTests.test_echo)
Basic test of an SSL client connecting to a server ... skipped "resource 'walltime' is not enabled"
test_getpeercert (test.test_ssl.ThreadedTests.test_getpeercert) ... 
{'OCSP': ('http://testca.pythontest.net/testca/ocsp/',),
 'caIssuers': ('http://testca.pythontest.net/testca/pycacert.cer',),
 'crlDistributionPoints': ('http://testca.pythontest.net/testca/revocation.crl',),
 'issuer': ((('countryName', 'XY'),),
            (('organizationName', 'Python Software Foundation CA'),),
            (('commonName', 'our-ca-server'),)),
 'notAfter': 'Oct 28 14:23:16 2037 GMT',
 'notBefore': 'Aug 29 14:23:16 2018 GMT',
 'serialNumber': 'CB2D80995A69525C',
 '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.test_getpeercert_enotconn) ... ok
test_handshake_timeout (test.test_ssl.ThreadedTests.test_handshake_timeout) ... ok
test_hostname_checks_common_name (test.test_ssl.ThreadedTests.test_hostname_checks_common_name) ...  server:  new connection from ('127.0.0.1', 56997)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 56999)

 server:  bad connection attempt from ('127.0.0.1', 56999):
Traceback (most recent call last):
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2503, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1104, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1404, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] ssl/tls alert bad certificate
ok
test_min_max_version_mismatch (test.test_ssl.ThreadedTests.test_min_max_version_mismatch) ... skipped 'TLSv1 is not available.'
test_min_max_version_sslv3 (test.test_ssl.ThreadedTests.test_min_max_version_sslv3) ... skipped 'SSLv3 is not available.'
test_min_max_version_tlsv1_1 (test.test_ssl.ThreadedTests.test_min_max_version_tlsv1_1) ... skipped 'TLSv1_1 is not available.'
test_min_max_version_tlsv1_2 (test.test_ssl.ThreadedTests.test_min_max_version_tlsv1_2) ... skipped 'TLSv1 is not available.'
test_no_shared_ciphers (test.test_ssl.ThreadedTests.test_no_shared_ciphers) ...  server:  new connection from ('127.0.0.1', 57001)

 server:  bad connection attempt from ('127.0.0.1', 57001):
Traceback (most recent call last):
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2503, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1104, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1404, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: NO_SHARED_CIPHER] no shared cipher
ok
test_nonblocking_send (test.test_ssl.ThreadedTests.test_nonblocking_send) ...  server:  new connection from ('127.0.0.1', 57003)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
Test server failure:
Traceback (most recent call last):
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2657, in run
    self.write(msg.lower())
         ^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2570, in write
    return self.sslconn.write(bytes)
                        ^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1185, in write
    return self._sslobj.write(data)
                        ^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 599, in write
    return self._write_with_length(_str_to_ffi_buffer(bytestring), len(bytestring))
                ^^^^^^^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 652, in _write_with_length
    raise pyssl_error(self, retval)
 _cffi_ssl._stdssl.error.SSLEOFError: EOF occurred in violation of protocol
ok
test_npn_protocols (test.test_ssl.ThreadedTests.test_npn_protocols) ... ok
test_protocol_sslv2 (test.test_ssl.ThreadedTests.test_protocol_sslv2)
Connecting to an SSLv2 server with various client options ... skipped 'SSLv2 is not available.'
test_protocol_sslv3 (test.test_ssl.ThreadedTests.test_protocol_sslv3)
Connecting to an SSLv3 server with various client options ... skipped 'SSLv3 is not available.'
test_protocol_tlsv1 (test.test_ssl.ThreadedTests.test_protocol_tlsv1)
Connecting to a TLSv1 server with various client options ... skipped 'TLSv1 is not available.'
test_protocol_tlsv1_1 (test.test_ssl.ThreadedTests.test_protocol_tlsv1_1)
Connecting to a TLSv1.1 server with various client options. ... skipped 'TLSv1_1 is not available.'
test_protocol_tlsv1_2 (test.test_ssl.ThreadedTests.test_protocol_tlsv1_2)
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
ok
test_read_write_after_close_raises_valuerror (test.test_ssl.ThreadedTests.test_read_write_after_close_raises_valuerror) ... ok
test_recv_into_buffer_protocol_len (test.test_ssl.ThreadedTests.test_recv_into_buffer_protocol_len) ...  server:  new connection from ('127.0.0.1', 57014)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_recv_send (test.test_ssl.ThreadedTests.test_recv_send)
Test recv(), send() and friends. ... 
 server:  new connection from ('127.0.0.1', 57016)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_recv_zero (test.test_ssl.ThreadedTests.test_recv_zero) ...  server:  new connection from ('127.0.0.1', 57019)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_rude_shutdown (test.test_ssl.ThreadedTests.test_rude_shutdown)
A brutal shutdown of an SSL server should raise an OSError ... ok
test_selected_alpn_protocol (test.test_ssl.ThreadedTests.test_selected_alpn_protocol) ...  server:  new connection from ('127.0.0.1', 57023)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 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_selected_alpn_protocol_if_server_uses_alpn (test.test_ssl.ThreadedTests.test_selected_alpn_protocol_if_server_uses_alpn) ...  server:  new connection from ('127.0.0.1', 57025)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 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.
 connection timeout TimeoutError('timed out')
ok
test_sendfile (test.test_ssl.ThreadedTests.test_sendfile) ... ok
test_server_accept (test.test_ssl.ThreadedTests.test_server_accept) ... ok
test_session (test.test_ssl.ThreadedTests.test_session) ...  server:  new connection from ('127.0.0.1', 57031)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 57033)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 57035)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
 server:  new connection from ('127.0.0.1', 57037)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1.2', 256)
ok
test_session_handling (test.test_ssl.ThreadedTests.test_session_handling) ...  connection timeout TimeoutError('timed out')
ok
test_shared_ciphers (test.test_ssl.ThreadedTests.test_shared_ciphers) ...  server:  new connection from ('127.0.0.1', 57043)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_sni_callback (test.test_ssl.ThreadedTests.test_sni_callback) ...  server:  new connection from ('127.0.0.1', 57045)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 connection timeout TimeoutError('timed out')
 server:  new connection from ('127.0.0.1', 57047)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 57049)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_sni_callback_alert (test.test_ssl.ThreadedTests.test_sni_callback_alert) ... ok
test_sni_callback_raising (test.test_ssl.ThreadedTests.test_sni_callback_raising) ... ok
test_sni_callback_wrong_return_type (test.test_ssl.ThreadedTests.test_sni_callback_wrong_return_type) ...  connection timeout TimeoutError('timed out')
ok
test_socketserver (test.test_ssl.ThreadedTests.test_socketserver)
Using socketserver to create and manage SSL connections. ... 
 server (('127.0.0.1', 57056):57056 ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)):
   [01/Jul/2026 05:20:05] "GET /test_ssl.py HTTP/1.1" 200 -
 client: read 231438 bytes from remote server '<HTTPSServerThread <HTTPSServer 1.0.0.127.in-addr.arpa:57056>>'
stopping HTTPS server
joining HTTPS thread
ok
test_ssl_cert_verify_error (test.test_ssl.ThreadedTests.test_ssl_cert_verify_error) ... 
 server:  new connection from ('127.0.0.1', 57060)

 server:  bad connection attempt from ('127.0.0.1', 57060):
Traceback (most recent call last):
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2503, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1104, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1404, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca
ok
test_starttls (test.test_ssl.ThreadedTests.test_starttls)
Switching from clear text to encrypted and back again. ... 
 client:  sending b'msg 1'...
 server:  new connection from ('127.0.0.1', 57062)
 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...
 client:  sending b'MSG 3'...
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server: read b'MSG 3' (encrypted), sending back b'msg 3' (encrypted)...
 client:  read b'msg 3' from server
 client:  sending b'msg 4'...
 server: read b'msg 4' (encrypted), sending back b'msg 4' (encrypted)...
 client:  read b'msg 4' from server
 client:  sending b'ENDTLS'...
 server: read ENDTLS from client, sending OK...
 client:  read b'ok' from server, ending TLS...
 client:  sending b'msg 5'...
 server: connection is now unencrypted...
 server: read b'msg 5' (unencrypted), sending back b'msg 5' (unencrypted)...
 client:  read b'msg 5' from server
 client:  sending b'msg 6'...
 server: read b'msg 6' (unencrypted), sending back b'msg 6' (unencrypted)...
 client:  read b'msg 6' from server
 client:  closing connection.
 server: client closed connection
ok
test_tls1_3 (test.test_ssl.ThreadedTests.test_tls1_3) ...  server:  new connection from ('127.0.0.1', 57064)
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_tls_unique_channel_binding (test.test_ssl.ThreadedTests.test_tls_unique_channel_binding)
Test tls-unique channel binding. ... 
 server:  new connection from ('127.0.0.1', 57066)
 got channel binding data: b'\xd4\xd3)\x7f\xbe\xf5W\xf7o\xce\xa6K7Z\x0f\xd8A\xd9\x12\xe0N\x04\x99Yz\xfe\x8f\x19s\x89t\xa5\xc0\xca\xe6\xa4\x1d\x92 d\x0c\x89\xa3l\xcb="\xd4'
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
 server:  new connection from ('127.0.0.1', 57067)
got another channel binding data: b'4\xd1\xa5Cj\x8a\xe1uhd\x1d7\x99\x0e\n\xe1\x9c\x8ek4\xd9\xba\x0eH\xfe\x8e9\xec*J\x1a \xca\xc0\xbe\xfa#/\xd6Bo`\x875\xf8dzz'
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
ok
test_version_basic (test.test_ssl.ThreadedTests.test_version_basic)
Basic tests for SSLSocket.version(). ... ok
test_wrong_cert_tls12 (test.test_ssl.ThreadedTests.test_wrong_cert_tls12)
Connecting when the server rejects the client's certificate ...  server:  new connection from ('127.0.0.1', 57071)

SSLError is SSLError(1, '[SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca')

 server:  bad connection attempt from ('127.0.0.1', 57071):
Traceback (most recent call last):
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2503, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1104, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1404, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 _cffi_ssl._stdssl.error.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate
ok
test_wrong_cert_tls13 (test.test_ssl.ThreadedTests.test_wrong_cert_tls13) ...  server:  new connection from ('127.0.0.1', 57073)

 server:  bad connection attempt from ('127.0.0.1', 57073):
Traceback (most recent call last):
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 2503, in wrap_conn
    self.sslconn = self.server.context.wrap_socket(
                                       ^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
                                ^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1104, in _create
    self.do_handshake()
         ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/ssl.py", line 1404, in do_handshake
    self._sslobj.do_handshake()
                 ^^^^^^^^^^^^
   File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 550, in do_handshake
    raise pyssl_error(self, ret)
 _cffi_ssl._stdssl.error.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate
ok

======================================================================
ERROR: test_preauth_data_to_tls_server (test.test_ssl.TestPreHandshakeClose.test_preauth_data_to_tls_server)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 5126, in test_preauth_data_to_tls_server
    self.non_linux_skip_if_other_okay_error(wrap_error)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_ssl.py", line 5073, in non_linux_skip_if_other_okay_error
    re.search('wrong.version.number', getattr(err, "reason", ""), re.I)):
       ^^^^^^
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/re/__init__.py", line 176, in search
    return _compile(pattern, flags).search(string)
                                    ^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'

----------------------------------------------------------------------
Ran 191 tests in 30.552s

FAILED (errors=1, skipped=20)
test_ssl failed (1 error) in 30.7 sec

== Tests result: FAILURE ==

1 test failed:
    test_ssl

Total duration: 30.7 sec
Total tests: run=191 skipped=20
Total test files: run=1/1 failed=1
Result: FAILURE
test test_ssl failed
builder: pypy-c-jit-macos-arm64 build #1298+
test: lib-python/3/test/test_ssl.py::unmodified