sslcurlopensslcomposer-php

Composer : SSL certificate problem: unable to get local issuer certificate


I'm using symfony for a web app and I need to require packages with composer composer require I have this error curl error 60 while downloading https://repo.packagist.org/packages.json: SSL certificate problem: unable to get local issuer certificate

I already downloaded the cacert.pem file, placed it in my php folder and edited this line in my php.ini : ;curl.cainfo = "C:\Program Files\PHP\extras\ssl\cacert.pem" but it didn't changed anything.

How can I solve it?


Solution

  • I just solved this problem by disable and enable again tls in composer with composer config -g -- disable-tls true