php cURL error 60: SSL certificate problem: unable to get local issuer certificate 解决办法

Error examples are as follows:

 

Above php5.6 version will face this problem

About "SSL certificate problem: Unable to get local issuer certificate" error. Obviously, this system is suitable for the transmission request CURL (and not server receives the request)

1) From the https://curl.haxx.se/ca/cacert.pem download the latest cacert.pem

 Php on his path after a good extras download directory, examples are as follows:

2) Add the following to php.ini

Examples are as follows:

 3) Restart php

Guess you like

Origin www.cnblogs.com/-mrl/p/10967373.html