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

If you are on Windows using Xampp, I am stealing a better answer from here, would be helpful if Google shows you this question first.

  • Download and extract for cacert.pem here (a clean file format/data)
    • https://curl.haxx.se/docs/caextract.html
  • Put it in :
    • C:xamppphpextrassslcacert.pem
  • Add this line to your php.ini
    • curl.cainfo = “C:xamppphpextrassslcacert.pem”
  • restart your webserver/Apache

 

If you are using Wamp: 

  • C:wamp64binphpphp7.4.4phpForApache.ini . – Edit here
  • Restarting PC worked for me. Thanks

Leave a Reply