How to Specify SSL Certificate Path in SoapSettinsBuilder.php with withSslCaFile() function v201708

58 views
Skip to first unread message

arbaz...@fourthdime.com

unread,
Sep 21, 2017, 10:14:19 AM9/21/17
to AdWords API Forum
Hi, 

I am using Adwords api v201609 right now but as its sunset date in near i am migrating to v201708 in which i am having problem to address ssl certiface.

"Error: cURL error 60: SSL certificate' " On 

Fatal error: Uncaught exception 'GuzzleHttp\Exception\RequestException' with message 'cURL error 60: SSL certificate pro
blem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)' in path\to\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:187

i found that above error should solve by specifying cert path in SoapSettingsBuilder.php's withSslCaFile() Funciton  
as : 

public function withSslCaFile($sslCaFile) {

 $this
->sslCaFile = path/to/cacert.pem;
   
return $this;
 
}

but no luck yet..

Can anyone help me to get this working..
Thanks


Shwetha Vastrad (AdWords API Team)

unread,
Sep 21, 2017, 1:14:48 PM9/21/17
to AdWords API Forum
Hi, 

Could you confirm if the right path is provided for your certificate and it's readable by the script? In addition, could you please try a fresh new cert, e.g., from https://curl.haxx.se/docs/caextract.html? If this doesn't solve the issue, I would suggest that you create a post on the library's issue tracker so the library owners can help you out. 

Thanks,
Shwetha Vastrad
AdWords API Team.
Reply all
Reply to author
Forward
0 new messages