cURL error 60: SSL certificate prblm: unable to get local issuer certificate [duplicate]
If you are on Windows using Xampp, I am stealing a better answer from here, would be helpful if Google shows you this question first.
Download and extract for cacert.pem here (a clean file format/data)
Put it in :
C:\xampp\php\extras\ssl\cacert.pem
Add this line to your php.ini
curl.cainfo = "C:\xampp\php\extras\ssl\cacert.pem"
restart your webserver/Apache
Seeing I am using a local environment I can safely disable SSL, which i did using the following:
$guzzleClient = new \GuzzleHttp\Client(array( 'curl' => array( CURLOPT_SSL_VERIFYPEER => false, ), ));$client->setHttpClient($guzzleClient);
Where $client
is my Google_Client().
$guzzleClient = new \GuzzleHttp\Client(['verify' => false]);
Guzzle version 6
You could refer to Guzzle Docs at
http://docs.guzzlephp.org/en/latest/request-options.html#verify