SSL support is broken -> Fix provided
Created by: ralphwetzel
Hi! SSL support is broken in wsgiserver (and probably in CherryPy as well). I've tried to generate a fix & pull request, yet you've disabled the collaboration feature. Therefore find the changes attached:
line 1776:
if hasattr(ssl, 'create_default_context'):
self.context = ssl.create_default_context(
purpose=ssl.Purpose.CLIENT_AUTH,
cafile=self.certificate_chain
)
self.context.load_cert_chain(self.certificate, self.private_key)
line 1806:
elif e.errno == ssl.SSL_ERROR_SSL:
if e.args[1].find('http request') > 0:
# The client is speaking HTTP to an HTTPS server.
raise NoSSLError
elif e.args[1].find('unknown protocol') > 0:
# The client is speaking some non-HTTP protocol.
# Drop the conn.
return None, {}
Hope this helps.
Ralph