Skip to main content
Image for post: Curl problem with Symfony 3 or Laravel

Curl problem with Symfony 3 or Laravel

I have recently tried to install Symfony 3 and I have had a problem with Symfony command console when installing Symfony 3. I have installed it some month ago and when Symfony 3 came out but I have never had this problem! Actually, I am using XAMPP on Windows. Here is the error on the command line:


[GuzzleHttp\Ring\Exception\RingException]
cURL error 60: SSL certificate problem: unable to get local issuer certificate

Solution

1) Download the cacert

2) Copy or cut and paste the file on C:\xampp\php\extras\ssl\cacert.pem

3) Edit the php.ini:


curl.cainfo = "C:\xampp\php\extras\ssl\cacert.pem"

4) Restart Apache

Yes! We did it! Now you can run the symfony or laravel command and all must be ok.

Resources