pycurl

Kjetil Jacobsen kjetilja at cs.uit.no
Wed Feb 12 08:10:43 EST 2003


cuiod-tec at web.de (Jens Gelhaar) wrote in message news:<efc75b6a.0302111337.31853d43 at posting.google.com>...
> Hi,
> 
> I want to access an https site with pycurl, but I get always the
> message
> 
> error: (35, 'SSL: error:14090086:SSL
> routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed')
> 
> With curl I can use "-k" option
> 
> curl.exe -k <url>
> 
> to disable the verification. How can I do that in pycurl?

this is really not a pycurl issue (read the libcurl docs for more
info).

since libcurl version 7.10, you have to set the SSL_VERIFYPEER option
to 0.  in pycurl this would be something like the following
(untested):

c = pycurl.Curl()
c.setopt(pycurl.SSL_VERIFYPEER, 0)
c.setopt(pycurl.SSL_VERIFYHOST, 1)

regards,
     - kjetil




More information about the Python-list mailing list