composer: I can't set up laravel with Composer! Error: curl error 60 SSL certificate problem: unable to get local issuer certificate

Although I have tried many solutions, I cannot install laravel.I was also getting a certificate error when installing a resource with npm today.The problem may have been caused directly by windows’ SSL certificate, but I could not find a solution at all.I followed and did all the ways like php.ini, cacert.pem, but I still didn’t succeed.

I really need help, I’ve been dealing with this problem for days.

Error: curl error 60 SSL certificate problem: unable to get local issuer certificate

image

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 32 (5 by maintainers)

Commits related to this issue

Most upvoted comments

In my case it is due to anti-virus program Avast. make sure you disable it till you finish installing.

I tried disabling avast and everything worked fine

I have the same problem. Here is how i solved it: disable HTTPS scanning and QUIC/HTTP3 scanning options in the Norton home \ Settings\ Safe web and disabled NATV before install the composer.

Image

After installation, active the Norton.

I couldn’t find the solution to the problem and didn’t want to deal with it any more, so I reset the computer and the problem was solved.Thank you for your support. 😃

If npm also has the problem, this definitely looks like an issue with the root CA store on your system rather than an issue with Composer. Btw: it could also be an issue with a crappy antivirus software actually doing a MitM on the HTTPS connection. Check whether your Antivirus has a feature like “HTTPS protection” (the name varies by vendor) and tries disabling it.

Same solution for me: I tried disabling avast and everything worked fine.

I had the same problem and I had reinstall windows in frustration, the cause was Avast Antivirus, disabling was not the correct way to bypass curl SSL issue so I researched for a while and found the solution below when using Avast.

Go to Settings, open Protection tab and then open Core Shields, now look for ‘Configure shield settings:’, then open Web Shield, in this section disable following check and you are good to go next time without disabling whole Avast thing.

Image

I had the same problem and I had reinstall windows in frustration, the cause was Avast Antivirus, disabling was not the correct way to bypass curl SSL issue so I researched for a while and found the solution below when using Avast.

Go to Settings, open Protection tab and then open Core Shields, now look for ‘Configure shield settings:’, then open Web Shield, in this section disable following check and you are good to go next time without disabling whole Avast thing.

Image

This was the solution (after days wasted) but my Antivirus was AVG - under settings, basic protection, web shield, uncheck “Enable HTTPS scanning” - thanks you so much!

Had the same issue, on Windows and with Avast as the cause.

Mine is installed at the (I believe) default location: C:\Program Files\Avast Software\Avast

I has the same error, but i can’t find a solution, but you dont make anything?

Helo mate, have you already tried to restart your pc ?

I have the same problem. Here is how i solved it: disable HTTPS scanning and QUIC/HTTP3 scanning options in the Norton home \ Settings\ Safe web and disabled NATV before install the composer.

Image

After installation, active the Norton.

Thank you very much. It resolve the issue 👍🏻 much appreciated

I have the same problem. Here is how i solved it: disable HTTPS scanning and QUIC/HTTP3 scanning options in the Norton home \ Settings\ Safe web and disabled NATV before install the composer.

Image

After installation, active the Norton.

Thank you very much @baotrinhnz, your method works for me!

I has the same error also but the solution is deactivate the antivirus for ten minutes

I tried disabling avast and everything worked fine

Thank you. Saved my day. I tried everything and avast was the issue.

I has the same error, but i can’t find a solution, but you dont make anything?