Package cherrypy :: Package wsgiserver :: Module ssl_pyopenssl :: Class pyOpenSSLAdapter
[hide private]
[frames] | no frames]

Class pyOpenSSLAdapter

source code

            object --+    
                     |    
wsgiserver2.SSLAdapter --+
                         |
                        pyOpenSSLAdapter

A wrapper for integrating pyOpenSSL with CherryPy.

Instance Methods [hide private]
 
__init__(self, certificate, private_key, certificate_chain=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
bind(self, sock)
Wrap and return the given socket.
source code
 
wrap(self, sock)
Wrap and return the given socket, plus WSGI environ entries.
source code
 
get_context(self)
Return an SSL.Context from self attributes.
source code
 
get_environ(self)
Return WSGI environ entries to be merged into each request.
source code
 
makefile(self, sock, mode='r', bufsize=-1) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  context = None
An instance of SSL.Context.
  certificate = None
The filename of the server SSL certificate.
  private_key = None
The filename of the server's private key file.
  certificate_chain = None
Optional.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, certificate, private_key, certificate_chain=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

wrap(self, sock)

source code 

Wrap and return the given socket, plus WSGI environ entries.

Overrides: wsgiserver2.SSLAdapter.wrap

makefile(self, sock, mode='r', bufsize=-1)

source code 
Overrides: wsgiserver2.SSLAdapter.makefile

Class Variable Details [hide private]

certificate_chain

Optional. The filename of CA's intermediate certificate bundle.

This is needed for cheaper "chained root" SSL certificates, and should be left as None if not required.

Value:
None