10 lines
187 B
Python
10 lines
187 B
Python
|
import ssl
|
||
|
|
||
|
import certifi
|
||
|
|
||
|
|
||
|
def default_ssl_context() -> ssl.SSLContext:
|
||
|
context = ssl.create_default_context()
|
||
|
context.load_verify_locations(certifi.where())
|
||
|
return context
|