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