fixed: ssl call error at function load_cert_chain.
If option '--key' is not specified. 'WebSockifyServer class' will
inital self.key as empty string. but ssl load_cert_chain function
will raise error 'no such file' with keyfile param empty string.
This commit is contained in:
parent
8b2a949276
commit
ade9d61c22
|
|
@ -353,9 +353,12 @@ class WebSockifyServer(object):
|
||||||
self.tcp_keepidle = tcp_keepidle
|
self.tcp_keepidle = tcp_keepidle
|
||||||
self.tcp_keepintvl = tcp_keepintvl
|
self.tcp_keepintvl = tcp_keepintvl
|
||||||
|
|
||||||
|
# keyfile path must be None if not specified
|
||||||
|
self.key = None
|
||||||
|
|
||||||
# Make paths settings absolute
|
# Make paths settings absolute
|
||||||
self.cert = os.path.abspath(cert)
|
self.cert = os.path.abspath(cert)
|
||||||
self.key = self.web = self.record = self.cafile = ''
|
self.web = self.record = self.cafile = ''
|
||||||
if key:
|
if key:
|
||||||
self.key = os.path.abspath(key)
|
self.key = os.path.abspath(key)
|
||||||
if web:
|
if web:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue