mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 21:14:55 +00:00
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:
parent
0490df5a42
commit
aa05a27d28
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user