Browse Source

CherryPy 8.1.2 - Catch another SSL error for Safari on OSX

User needs to add execption first
pull/752/head
Safihre 9 years ago
parent
commit
7b2d56a4c7
  1. 5
      cherrypy/wsgiserver/ssl_builtin.py

5
cherrypy/wsgiserver/ssl_builtin.py

@ -86,6 +86,11 @@ class BuiltinSSLAdapter(wsgiserver.SSLAdapter):
# The client is speaking some non-HTTP protocol.
# Drop the conn.
return None, {}
elif 'unknown ca' in e.args[1]:
# This error is thrown by builtin SSL if Safari connects
# when self-signed certificates are used. The connection
# can be dropped until the users adds the exception
return None, {}
elif 'handshake operation timed out' in e.args[0]:
# This error is thrown by builtin SSL after a timeout
# when client is speaking HTTP to an HTTPS server.

Loading…
Cancel
Save