diff --git a/keepercommander/__main__.py b/keepercommander/__main__.py index ce019d172..7bf8dc56d 100644 --- a/keepercommander/__main__.py +++ b/keepercommander/__main__.py @@ -12,6 +12,7 @@ import argparse +import certifi import json import logging import os @@ -130,6 +131,7 @@ def handle_exceptions(exc_type, exc_value, exc_traceback): def main(from_package=False): + os.environ['SSL_CERT_FILE'] = certifi.where() logging.basicConfig(format='%(message)s') errno = 0 diff --git a/keepercommander/commands/discoveryrotation.py b/keepercommander/commands/discoveryrotation.py index c9473a296..597e4589d 100644 --- a/keepercommander/commands/discoveryrotation.py +++ b/keepercommander/commands/discoveryrotation.py @@ -1830,9 +1830,6 @@ async def connect(self, params, record_uid, convo_id, gateway_uid, host, port, l 'Cookie': cookie_str, } - ssl_context = ssl.SSLContext() - ssl_context.verify_mode = ssl.CERT_NONE - entrance_ws = await websockets.connect(connection_url, ping_interval=10, extra_headers=extra_headers) print("--> 2. SEND START MESSAGE OVER REST TO GATEWAY")