import urllib3
import certifi http = urllib3.PoolManager(
cert_reqs='CERT_REQUIRED', # Force certificate check.
ca_certs=certifi.where(), # Path to the Certifi bundle.
)
try:
res = http.request('GET', 'https://github.com')
print(res.status)
print(res.headers)
except urllib3.exceptions.SSLError as e:
print(e)
My favourite way to express my thoughts or ideas is writing code.