The certifi
library often runs into issues with domain certificates, but in the standard urllib.request
library has no issue.
If I set the context to use the certifi's file, I get the SSL error,
import ssl
import certifi
import requests.urllib as urlrq
resp = urlrq.urlopen(url="https://<web address>/rest/info?f=json",
context=ssl.create_default_context(cafile=certifi.where()))
if I use the standard library and set the context as follows:
import ssl
import certifi
import requests.urllib as urlrq
resp = urlrq.urlopen(url="https://<web address>/rest/info?f=json",
context=ssl.SSLContext(ssl.PROTOCOL_TLSv1))
No SSL error.
How can I get requests to honor this SSLContext
?