Commit 91c69613 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Allow SSL ciphers to be overridden in HTTP server

Users of this class, such as the RAPI server, might want to override or adjust
the default SSL cipher defined in a constant.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent 5b27346a
......@@ -595,7 +595,10 @@ class HttpBase(object):
ctx = OpenSSL.SSL.Context(OpenSSL.SSL.SSLv23_METHOD)
ciphers = self.GetSslCiphers()
logging.debug("Setting SSL cipher string %s", ciphers)
......@@ -608,6 +611,12 @@ class HttpBase(object):
return OpenSSL.SSL.Connection(ctx, sock)
def GetSslCiphers(self):
"""Returns the ciphers string for SSL.
return constants.OPENSSL_CIPHERS
def _SSLVerifyCallback(self, conn, cert, errnum, errdepth, ok):
"""Verify the certificate provided by the peer
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment