Skip to content

Commit e57e07a

Browse files
committed
self signed certificate; no need to verify
signed commit final commit
1 parent e59dd4d commit e57e07a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ws4py/client/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ def connect(self):
211211
context.load_cert_chain(self.ssl_options.get('certfile'), self.ssl_options.get('keyfile'))
212212
# Prevent check_hostname requires server_hostname (ref #187)
213213
if "cert_reqs" not in self.ssl_options:
214-
context.check_hostname = False
214+
context.check_hostname = False
215+
context.verify_mode = ssl.CERT_NONE
215216

216217
self.sock = context.wrap_socket(self.sock)
217218
self._is_secure = True

0 commit comments

Comments
 (0)