Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cURL error 60: ssl certification issue when attempting to use symfony

I have recently gotten a new windows computer and have installed the php symfony framework.

When attempting to use the new command C:> php symfony new blog I receive the error message [GuzzleHttp\Ring\Exception\RingException] cURL error 60: SSL certificate problem: unable to get local issuer certificate.

I am clueless on what to do in this instance as I am not too experienced with the CMD interface.

I need to know if this is an error with windows or with symfony itself and any possible routes I could take in fixing it.

like image 349
colin rickels Avatar asked Jun 23 '16 16:06

colin rickels


People also ask

What is a curl Error 60?

Error “curl: (60) SSL certificate problem: unable to get local issuer certificate” can be seen when the SSL certificate on the server is not verified or properly configured.


3 Answers

Follow this link, Copy the entire page and save it in a: "cacert.pem"

Then in your php.ini file insert or edit the following line: curl.cainfo = "[pathtothisfile]\cacert.pem"

Or

use composer instead Symfony installer

like image 179
Mokhtar Tlili Avatar answered Oct 05 '22 02:10

Mokhtar Tlili


I had the same error with the php version 7.0.10

The mistake I did was that I copyied the certificate (cacert.pem) in the wrong php.ini file. I mean, I have 3 type of ini file: php-development.ini, php-production.ini and php.ini

and the right one was php.ini

Make sure you put the path of the certificate in the right one.

And it will work ! ;) lovely symfony <3

FH

like image 33
Francine H. Avatar answered Oct 05 '22 03:10

Francine H.


you can try the the command line below,it's worked for me

composer create-project symfony/framework-standard-edition my_project_name "2.8.*"
like image 39
J Ha Avatar answered Oct 05 '22 02:10

J Ha