From d97d978961cc5ccf2980a32cd72f53115bd88f9d Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 28 Feb 2019 12:45:56 -0500 Subject: [PATCH] use certifi for all operating systems --- lbrynet/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lbrynet/utils.py b/lbrynet/utils.py index f48751c48..86d917b25 100644 --- a/lbrynet/utils.py +++ b/lbrynet/utils.py @@ -1,4 +1,3 @@ -import sys import base64 import codecs import datetime @@ -165,7 +164,7 @@ async def resolve_host(url: str, port: int, proto: str) -> str: def get_ssl_context() -> ssl.SSLContext: return ssl.create_default_context( - purpose=ssl.Purpose.CLIENT_AUTH, capath=None if 'darwin' not in sys.platform else certifi.where() + purpose=ssl.Purpose.CLIENT_AUTH, capath=certifi.where() )