class documentation

class HttpBase(object):

Known subclasses: ganeti.http.server.HttpServer, server.HttpServer

View In Hierarchy

Base class for HTTP server and client.

Method __init__ Undocumented
Method GetSslCiphers Returns the ciphers string for SSL.
Instance Variable using_ssl Undocumented
Method _CreateSocket Creates a TCP socket and initializes SSL if needed.
Method _SSLVerifyCallback Verify the certificate provided by the peer
Instance Variable _ssl_cert Undocumented
Instance Variable _ssl_chain Undocumented
Instance Variable _ssl_key Undocumented
Instance Variable _ssl_params Undocumented
def __init__(self):

Undocumented

def GetSslCiphers(self):

Returns the ciphers string for SSL.

using_ssl =

Undocumented

def _CreateSocket(self, ssl_params, ssl_verify_peer, family, ssl_verify_callback):

Creates a TCP socket and initializes SSL if needed.

Parameters
ssl_params:HttpSslParamsSSL key and certificate
ssl_verify_peer:boolWhether to require client certificate and compare it with our certificate
family:intsocket.AF_INET | socket.AF_INET6
ssl_verify_callbackUndocumented
def _SSLVerifyCallback(self, conn, cert, errnum, errdepth, ok):

Verify the certificate provided by the peer

We only compare fingerprints. The client must use the same certificate as we do on our side.

_ssl_cert =

Undocumented

_ssl_chain =

Undocumented

_ssl_key =

Undocumented

_ssl_params =

Undocumented