Home > php教程 > php手册 > curl: (60) SSL certificate problem: unable to get local issuer certificate 错误,curlissuer

curl: (60) SSL certificate problem: unable to get local issuer certificate 错误,curlissuer

WBOY
Release: 2016-06-13 09:24:24
Original
1168 people have browsed it

curl: (60) SSL certificate problem: unable to get local issuer certificate 错误,curlissuer

此问题的出现是由于没有配置信任的服务器HTTPS验证。默认,cURL被设为不信任任何CAs,就是说,它不信任任何服务器验证。因此,这就是浏览器无法通过HTTPs访问你服务器的原因。当此问题出现时,网络程序员最好的办法是充分指定一组默认的受信任CAs,前提是你已经从这些CAs中购买过证书。
如果你的内容不敏感,一个快捷的方法是使用curl_exec()之前跳过ssl检查项:

curl_setopt(<span>$ch</span>, CURLOPT_SSL_VERIFYPEER, <span>false</span>);
Copy after login

SSL 错误 86 解决办法

错误信息:无法验证安全证书 unable go get local issuer certificate。
英文错误信息的翻译过来是“不能获得证书颁发者”,这是因为你电脑中没有安装此证书的CA证书。

你需要做的是:获得证书的CA证书,并将之安装到你的电脑中。
 

Linux 下怎为wget等安装证书

好好看一下wget 的帮助,加-no-check-certificate 选项,试试。
 

Related labels:
ssl
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template