Unable to complete network request; cURL error 60: SSL certificate problem: certificate has expired (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

i just finished the laravel tutorial (Auth0 Laravel SDK Quickstarts: Add Login to a Laravel Application) and i get the error that my certificate is outdated. I am using laragon and it says the certificate is valid until 2030 so that would be no problem. Anyone have a idea?

How to solve this problem:

  • download and extract cacert.pem following the instructions at curl - Extract CA Certs from Mozilla
  • save it on your filesystem somewhere (for example, laragon users might use C:\laragon\etc\ssl\cacert.pem)
  • in your php.ini, put this file location in the [curl] section (putting it in the [openssl] section is also a good idea):
[curl]
curl.cainfo = "C:\laragon\etc\ssl\cacert.pem"

[openssl]
openssl.cafile = "C:\laragon\etc\ssl\cacert.pem"
  • restart your webserver (e.g. Apache) and PHP FPM server if applicable