Message12530

Author adamburke
Recipients adamburke
Date 2019-05-23.05:47:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558590447.03.0.503289510033.issue2774@roundup.psfhosted.org>
In-reply-to
Content
Example from Travis 
https://travis-ci.org/jythontools/jython/jobs/535576707

     [exec] Re-running test 'test_ssl' in verbose mode
     [exec] test_ssl: testing with 'OpenSSL 1.0.0 (as emulated by Java SSL)' (1, 0, 0, 0, 0)
     [exec]           under Linux ('debian', 'jessie/sid', '')
     [exec]           HAS_SNI = True
     [exec]           OP_ALL = 0x       0
     [exec] 
     [exec]  RAND_status is 1 (sufficient randomness)
     [exec] [Errno 1] certificate verify failed (javax.net.ssl.SSLHandshakeException: General SSLEngine problem)
     [exec] 
     [exec] Needed 1 calls to do_handshake() to establish session.
     [exec] test test_ssl failed -- multiple errors occurred

Example locally

======================================================================
ERROR: test_connect_with_context (test.test_ssl.NetworkedTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Adam\jython\jython8\jython\dist\Lib\test\test_ssl.py", line 1552, in test_connect_with_context
    s.connect((REMOTE_HOST, 443))
  File "C:\Users\Adam\jython\jython8\jython\dist\Lib\ssl.py", line 621, in connect
    self.do_handshake()
  File "C:\Users\Adam\jython\jython8\jython\dist\Lib\ssl.py", line 691, in do_handshake
    self._sock._handle_channel_future(self._handshake_future, "SSL handshake")
  File "C:\Users\Adam\jython\jython8\jython\dist\Lib\_socket.py", line 384, in handle_exception
    raise _map_exception(jlx)
SSLError: [Errno 1] certificate verify failed (java.security.cert.CertificateException: certificate verify failed)

See similar Python bug https://bugs.python.org/issue36816 and commit 7b5dca8345f4a909367836a3a2c3c7ac6e4e2c0c
History
Date User Action Args
2019-05-23 05:47:27adamburkesetrecipients: + adamburke
2019-05-23 05:47:27adamburkesetmessageid: <1558590447.03.0.503289510033.issue2774@roundup.psfhosted.org>
2019-05-23 05:47:27adamburkelinkissue2774 messages
2019-05-23 05:47:26adamburkecreate