Kjetil Jacobsen kjetilja at
Wed Feb 12 14:10:43 CET 2003

cuiod-tec at (Jens Gelhaar) wrote in message news:<efc75b6a.0302111337.31853d43 at>...
> 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

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

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

     - kjetil

More information about the Python-list mailing list