[#3064|WebUI] Fix server not sending TLS intermediate certs

* Sending of cert chain was unintentionallly removed in commit c1902e43 (#2792).
This commit is contained in:
Calum Lind 2017-06-15 11:22:10 +01:00
parent 60c764ac33
commit 06dfeed750

View File

@ -661,7 +661,9 @@ class DelugeWeb(component.Component):
with open(configmanager.get_config_dir(self.pkey)) as pkey:
private_key = KeyPair.load(pkey.read(), FILETYPE_PEM).original
options = CertificateOptions(privateKey=private_key, certificate=certificate, method=SSL.SSLv23_METHOD)
options.getContext().set_options(SSL.OP_NO_SSLv2 | SSL.OP_NO_SSLv3)
ctx = options.getContext()
ctx.set_options(SSL.OP_NO_SSLv2 | SSL.OP_NO_SSLv3)
ctx.use_certificate_chain_file(configmanager.get_config_dir(self.cert))
self.socket = reactor.listenSSL(self.port, self.site, options, interface=self.interface)
ip = self.socket.getHost().host