The problem is that pycurl requires an updated certificate chain to verify ssl certificates.
A good solution would be to use certifi .
Basically this is a modern copy of mozilla, built into a certificate chain wrapped in a python package that can be updated with pip. certifi.where() indicates the location of the certificate package.
To use pycurl to use, set the CAINFO parameter:
import pycurl import certifi curl = pycurl.Curl() curl.setopt(pycurl.CAINFO, certifi.where()) curl.setopt(pycurl.URL, 'https://www.quora.com') curl.perform()
mata
source share