OK. Source package of curl library contains bundle with certificates.
I end up with this testing script that actually works without error:
t = Test()
c = pycurl.Curl()
c.setopt(c.URL, 'https://launchpad.net')
c.setopt(c.WRITEFUNCTION, t.body_callback)
c.setopt(c.CAINFO, 'ca-bundle.crt')
c.perform()
c.close()
The key point is to use
c.setopt(c.CAINFO, 'ca-bundle.crt')
Without this statement pycurl don't want to find valid certificate bundle.
I also try recommendation from this page: http://curl.haxx.se/docs/sslcerts.html
Section 4 explain how curl search bundle on Windows. Unfortunately pycurl
ignores these rules.
OK. Source package of curl library contains bundle with certificates.
I end up with this testing script that actually works without error:
t = Test() /launchpad. net') c.WRITEFUNCTION , t.body_callback)
c = pycurl.Curl()
c.setopt(c.URL, 'https:/
c.setopt(
c.setopt(c.CAINFO, 'ca-bundle.crt')
c.perform()
c.close()
The key point is to use
c.setopt(c.CAINFO, 'ca-bundle.crt')
Without this statement pycurl don't want to find valid certificate bundle.
I also try recommendation from this page: http:// curl.haxx. se/docs/ sslcerts. html
Section 4 explain how curl search bundle on Windows. Unfortunately pycurl
ignores these rules.