Closed yooouuri closed 7 years ago
Hi @yooouuri
As suggested by the message, could you please if your cert file is there (in /etc/ssl/certs/ca-certificates.crt
) and the permission settings is correct?
Best, Knack
Hi @fiboknacky
ca-certificates.crt does exist:
vagrant@homestead:/etc/ssl/certs$ ls -all ca-certificates.crt
-rw-r--r-- 1 root root 274340 Mar 20 20:50 ca-certificates.crt
And when I run cat ca-certificates.crt
as a non root user it shows me a bunch of certificates.
Best, Youri
This only happen when i'm using this library. I am going to test the CA, ill keep in touch.
Edit: @fiboknacky on what url do i need to test the certificates?
Edit 2: @fiboknacky The result is given below:
Verify return code: 0 (ok)
Thanks for the help.
Best, Youri
Could you try injecting your CA file using SoapSettingsBuilder::withSslCaFile()? Try putting the CA file in a different path than that of your default CA file.
After setting that, you can create a custom SOAP settings object using build()
.
Then, you can create an AdWordsSession using the created SOAP settings object in the previous step by using withSoapSettings()
And if still doesn't work, could you please try this CA from Mozilla (mentioned in the Guzzle reference doc)?
Hi @fiboknacky
Tried the both solutions, no luck. Used ca-certificates.crt
from the system and downloaded ca-bundle.crt
->withSoapSettings((new SoapSettingsBuilder())
->withSslCaFile('/home/***/ca-bundle.crt')
->build())
Hello @yooouuri
Could you please try using Guzzle purely? I searched in the internet and found some cases that Guzzle has a problem with Vagrant. If it's the same for your case, we may need to ask in Guzzle issues tracker too.
Best, Knack
Close due to inactivity. Please feel free to get back to us if you still have this problem.
Facing this issue still
I am importing campaigns, adgroups, ads and keywords from a live account.
First I select a campaign and afterwards with that campaign id I select an adgroup etc etc
At some point, I get the following error...
https://curl.haxx.se/libcurl/c/libcurl-errors.html says:
CURLE_SSL_CACERT_BADFILE (77) Problem with reading the SSL CA cert (path? access rights?)
The stack trace: