ssl changes

This commit is contained in:
Jonas Weinz 2019-03-11 15:07:22 +01:00
parent 9b1eeb252c
commit 8090a1312c
2 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,7 @@ async def socket_worker(websocket, path):
print("close connection to user: " + id)
ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
ssl_context.load_cert_chain(cert_file)
ssl_context.load_cert_chain(cert_file , keyfile=key_file)
start_server = websockets.serve(socket_worker, host='', port=5555, ssl=ssl_context)

View File

@ -1 +1,2 @@
cert_file = None
key_file = None