Developer Developer - 7 months ago 102
PHP Question

Symfony2 [GuzzleHttp\Exception\RequestException]

I am encountering error when I run the below command on command prompt (symfony installer):

>> php -r "file_put_contents('symfony', file_get_contents(''));"

Then i created symfony project with below command

>> php symfony new myProject

I am facing the below error even though in Netbeans:

cURL error 60: SSL certificate problem: unable to get local issuer certificate


Assuming On windows

XAMPP server

similar for other environment - download and extract for cacert.pem here (a clean file format/data)

I would recommend using the cacert.pem from the official curl-page:

put it here


in your php.ini put this line in this section:

; php.ini Options  ;

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

restart your webserver/apache

This message is coming because of your PHP version. If it is upper from PHP 5.5 then coming this error because of PHP 5.6 new feature. PHP 5.6 check certificates if you are using cURL.