7
>>> import pycurl
>>> c = pycurl.Curl()
>>> c.setopt(c.URL, 'https://quora.com')
>>> c.perform()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
pycurl.error: (60, 'SSL certificate problem: unable to get local issuer certificate')
>>>
>>> c.setopt(c.URL, 'http://quora.com')
>>> c.perform()
>>>
>>>
为什么无法获取本地颁发者证书?我该如何解决这个问题?当我在浏览器中打开quora.com时,我看到它的身份已被验证。为什么会这样?我如何让pycurl使用我的浏览器使用的相同证书?
相关:http://stackoverflow.com/questions/8332643/pycurl-and-ssl-cert – 2013-04-24 13:17:48