Closed DannyFeliz closed 9 years ago
Do you know if you have cURL on your computer? I think it is commonly installed on Mac / Linux, but not Windows. If cURL isn't available, Guzzle will fall back to it's own HTTP client and possibly not use your system set of root certificates.
Try installing cURL for your version of Windows, this may help: http://support.gnip.com/articles/curl-on-win7.html
@SocalNick I have cURL on my computer and if I go to C:\Program Files\cURL\bin you can see the certificate (curl-ca-bundle.crt) so I don't know what's wrong
Can you make cURL requests to Orchestrate directly?
curl -i "https://api.orchestrate.io/v0/$collection?force=true" \
-XDELETE \
-u "$api_key:"
Sorry, that was a delete, try:
curl -i "https://api.orchestrate.io/v0/$collection" -u "$api_key:"
Yes @SocalNick , I get results if from the command line I run any request.
It's likely that XAMPP either isn't using that curl or isn't using correct CA info. Try this solution:
Yes @SocalNick you were right It was a problem of XAMPP
I just had to add curl.cainfo = "PATH_TO/cacert.pem"
at the end of the php.ini
file of XAMPP, located in XAMMP/PHP/php.ini
Thank you man! :smile: :sunglasses:
Glad we figured it out!
It's easy to fix for (php 5.3.7 or higher) - Download a list file with an up-to-date certificate authorities, and add this setting to your php.ini
It works as below for me by adding full path of certificate file.
curl.cainfo =E:\xampp\php\cacert.pem
I'm trying to follow your tutorial but when I run my code and I get this error
And this is my code
Could you please help me with this error? I had been googling about this error and they are talking about the certficate and of course this is the problem but I can't figure out how to set the certificate but nothing works until now, i was following this issue but this is other library.