I have a site at opalstack which uses letsencrypt free certificate.
I am using python2.7.5 with latest request library and it is returning certificate verify failed
This is the pip list of the virtualenv with only latest requests library installed
certifi (2021.10.8)
chardet (4.0.0)
idna (2.10)
pip (7.1.2)
requests (2.27.1)
setuptools (18.2)
urllib3 (1.26.8)
wheel (0.24.0)
my site is https://practicalmethod.com (i tried other common site with no error, so it is only my site at opalstack)
python session
Python 2.7.5 (default, Nov 16 2020, 22:23:17)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import requests
requests.get("https://practicalmethod.com/")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/XX/test_request/lib/python2.7/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/home/XX/test_request/lib/python2.7/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/home/XX/test_request/lib/python2.7/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/home/XX/test_request/lib/python2.7/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/home/XX/test_request/lib/python2.7/site-packages/requests/adapters.py", line 517, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='practicalmethod.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618)'),))