Comment 5 for bug 82086

Revision history for this message
Alexander Belchenko (bialix) wrote :

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, '')
c.setopt(c.WRITEFUNCTION, t.body_callback)
c.setopt(c.CAINFO, 'ca-bundle.crt')

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:
Section 4 explain how curl search bundle on Windows. Unfortunately pycurl
ignores these rules.