forked from LBRYCommunity/lbry-sdk
use certifi for all operating systems
This commit is contained in:
parent
f52e44b56a
commit
d97d978961
1 changed files with 1 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
||||||
import sys
|
|
||||||
import base64
|
import base64
|
||||||
import codecs
|
import codecs
|
||||||
import datetime
|
import datetime
|
||||||
|
@ -165,7 +164,7 @@ async def resolve_host(url: str, port: int, proto: str) -> str:
|
||||||
|
|
||||||
def get_ssl_context() -> ssl.SSLContext:
|
def get_ssl_context() -> ssl.SSLContext:
|
||||||
return ssl.create_default_context(
|
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()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue