Skip to content
Snippets Groups Projects
Commit c2743774 authored by Michael Loipführer's avatar Michael Loipführer
Browse files

fix ssl

parent 5520823a
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
},
"websocket": {
"chainfile": "tls.pem",
"private_key": "tls.key",
"external_host": "localhost",
"external_port": 8001,
"internal_host": "localhost",
......
......@@ -59,7 +59,7 @@ class WebSocket:
# initialize ssl
self.ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
self.ssl_context.load_cert_chain(Path(self.config.get("chainfile")))
self.ssl_context.load_cert_chain(Path(self.config.get("chainfile")), Path(self.config.get("private_key")))
self.connections = set()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment