From 1da633396d571421c85f1d61f01a889e58563c85 Mon Sep 17 00:00:00 2001 From: Usama Jamil Date: Fri, 29 Jun 2018 04:03:00 +0500 Subject: [PATCH] ISSUE RESOLVED [SSL: CERTIFICATE_VERIFY_FAILED] People facing this error btfxwss.connection:Connection Error - [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777) can use this code. --- btfxwss/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btfxwss/connection.py b/btfxwss/connection.py index 50fbfb6..22900b7 100644 --- a/btfxwss/connection.py +++ b/btfxwss/connection.py @@ -53,7 +53,7 @@ def __init__(self, *args, url=None, timeout=None, sslopt=None, # Connection Settings self.socket = None self.url = url if url else 'wss://api.bitfinex.com/ws/2' - self.sslopt = sslopt if sslopt else {} + self.sslopt = {"cert_reqs": ssl.CERT_NONE} # Proxy Settings self.http_proxy_host = http_proxy_host