Home > Article > Backend Development > curl: (60) SSL certificate problem: unable to get local issuer certificate 错误,curlissuer_PHP教程
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>);
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.
Take a good look at the wget help, add the -no-check-certificate option, and try it.