use the same ssl key and certificate as the daemon (will add the option to specify a different one later)

This commit is contained in:
Damien Churchill 2009-07-16 08:58:05 +00:00
parent 0490df5a42
commit aa05a27d28

View File

@ -384,8 +384,8 @@ class ServerContextFactory:
def getContext(self):
"""Creates an SSL context."""
ctx = SSL.Context(SSL.SSLv3_METHOD)
ctx.use_privatekey_file(common.get_default_config_dir(os.path.join('ssl', 'web.key')))
ctx.use_certificate_file(common.get_default_config_dir(os.path.join('ssl', 'web.crt')))
ctx.use_privatekey_file(common.get_default_config_dir(os.path.join('ssl', 'daemon.pkey')))
ctx.use_certificate_file(common.get_default_config_dir(os.path.join('ssl', 'daemon.cert')))
return ctx
class DelugeWeb(component.Component):