cherrypy.wsgiserver.ssl_builtin – Builtin SSL
A library for integrating Python’s builtin ssl library with CherryPy.
The ssl module must be importable for SSL functionality.
To use this module, set CherryPyWSGIServer.ssl_adapter to an instance of
BuiltinSSLAdapter.
Classes
-
class cherrypy.wsgiserver.ssl_builtin.BuiltinSSLAdapter(certificate, private_key, certificate_chain=None)
A wrapper for integrating Python’s builtin ssl module with CherryPy.
-
bind(sock)
- Wrap and return the given socket.
-
certificate
- The filename of the server SSL certificate.
-
get_environ(sock)
- Create WSGI environ entries to be merged into each request.
-
private_key
- The filename of the server’s private key file.
-
wrap(sock)
- Wrap and return the given socket, plus WSGI environ entries.