错误pycurl.error: (60, 'SSL certificate problem: unable to get local issuer certificate')解决方案
2017-04-09 15:08
1911 查看
The problem is that
an up-to-date certificate chain to verify the ssl certificates.
A good solution would be to use certifi.
It's basically an up-to-date copy of mozilla's built in certificate chain wrapped in a python package which can be kept up to date using pip.
you the location to the certificate bundle.
To make
use it, set the
pycurlneeds
an up-to-date certificate chain to verify the ssl certificates.
A good solution would be to use certifi.
It's basically an up-to-date copy of mozilla's built in certificate chain wrapped in a python package which can be kept up to date using pip.
certifi.where()gives
you the location to the certificate bundle.
To make
pycurlto
use it, set the
CAINFOoption:
import pycurl import certifi curl = pycurl.Curl() curl.setopt(pycurl.CAINFO, certifi.where()) curl.setopt(pycurl.URL, 'https://www.quora.com') curl.perform()
相关文章推荐
- php curl请求https接口返回curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- 遇见过curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- Pyspider HTTP 599: SSL certificate problem: unable to get local issuer certificate解决方案
- curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- cURL error 60: SSL certificate problem: unable to get local issuer certificate 解决思路
- curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- 支付宝 微信支付 curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- PySpider 框架爬虫错误 HTTP 599: SSL certificate problem: unable to get local issuer certificate解决方案
- Yii easyWechat 开发的时候报错:cURL error 60: SSL certificate problem: unable to get local issuer certificat
- 微信公众号curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- cURL error 60: SSL certificate problem: unable to get local issuer certificate...
- symfony安装问题解决------cURL error 60:SSL certificate problem: unable to get local issuer certificate.
- cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
- php curl 报错:SSL certificate problem: unable to get local issuer certificate
- 【error】git clone: SSL certificate problem: unable to get local issuer certificate
- git获取代码提示SSL certificate problem: unable to get local issuer certificate