Home  >  Article  >  Backend Development  >  curl: (60) SSL certificate problem: unable to get local issuer certificate 错误,curlissuer_PHP教程

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

WBOY
WBOYOriginal
2016-07-13 10:17:436557browse

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

This problem occurs because a trusted server HTTPS verification is not configured. By default, cURL is set up not to trust any CAs, that is, it does not trust any server authentication. Therefore, this is why the browser cannot access your server via HTTPs. When this problem arises, the best thing a network programmer can do is to fully specify a default set of trusted CAs, assuming that you have purchased certificates from these CAs.
If your content is not sensitive, a quick way is to skip the SSL check before using curl_exec():

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

SSL Error 86 Solution

Error message: Unable to verify security certificate unable to get local issuer certificate.
The translation of the English error message is "Unable to obtain the certificate issuer". This is because the CA certificate for this certificate is not installed on your computer.

What you need to do is: obtain the CA certificate of the certificate and install it into your computer.

How to install certificates for wget etc. under Linux

Take a good look at the wget help, add the -no-check-certificate option, and try it.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/889011.htmlTechArticlecurl: (60) SSL certificate problem: unable to get local issuer certificate error, curlissuer This problem occurs due to There is no trusted server configured for HTTPS authentication. By default, cURL is...
Statement:
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