Add --key option for separate cert and key file.
If only --cert is specified then continue to assume both certificate and key are in the same file (key first).
This commit is contained in:
+3
-1
@@ -28,6 +28,7 @@ settings = {
|
||||
'handler' : None,
|
||||
'handler_id' : 1,
|
||||
'cert' : None,
|
||||
'key' : None,
|
||||
'ssl_only' : False,
|
||||
'daemon' : True,
|
||||
'record' : None, }
|
||||
@@ -114,7 +115,8 @@ def do_handshake(sock):
|
||||
retsock = ssl.wrap_socket(
|
||||
sock,
|
||||
server_side=True,
|
||||
certfile=settings['cert'])
|
||||
certfile=settings['cert'],
|
||||
keyfile=settings['key'])
|
||||
scheme = "wss"
|
||||
handler_msg("using SSL/TLS")
|
||||
elif settings['ssl_only']:
|
||||
|
||||
Reference in New Issue
Block a user