cURL error 60: SSL certificate: unable to get local issuer certificate

前端 未结 19 1576
天涯浪人
天涯浪人 2020-11-22 10:51

I use WAMP on a local development environment and am trying to charge a credit card but get the error message:

cURL error 60: SSL certificate problem:

19条回答
  •  爱一瞬间的悲伤
    2020-11-22 11:50

    If you're unable to change php.ini you could also point to the cacert.pem file from code like this:

    $http = new GuzzleHttp\Client(['verify' => '/path/to/cacert.pem']);
    $client = new Google_Client();
    $client->setHttpClient($http);
    

提交回复
热议问题