1

Whenever I try to run any php artisan commands on my laravel installation on local machine, it gives

SSL certificate problem: unable to get local issuer certificate

The same codebase works fine on other machines. My local machine runs on wamp with Windows 10 installed.

SanketR
  • 1,182
  • 14
  • 35

1 Answers1

3

Here's a solution I've used when I was using a Windows laptop.

Download the certificate.

Add or edit this line in php.ini config:

curl.cainfo = "[path_to_cerfificate]\cacert.pem"

And then restart your computer.

Alexey Mezenin
  • 158,981
  • 26
  • 290
  • 279