[WebUI] Modify SSL Context to allow >=TLSv1 protocol

* The TLSv1_METHOD is a fixed protocol version so this change will allow higher versions to be used where possible.
This commit is contained in:
Calum Lind 2014-11-20 15:11:42 +00:00
parent 40382002f6
commit 2c1a863ffb

View file

@ -584,7 +584,8 @@ class ServerContextFactory:
def getContext(self):
"""Creates an SSL context."""
ctx = SSL.Context(SSL.TLSv1_METHOD)
ctx = SSL.Context(SSL.SSLv23_METHOD)
ctx.set_options(SSL.OP_NO_SSLv2 | SSL.OP_NO_SSLv3)
deluge_web = component.get("DelugeWeb")
log.debug("Enabling SSL using:")
log.debug("Pkey: %s", deluge_web.pkey)