02 September 2022

Fix cURL error 60 "SSL certificate problem: unable to get local issuer certificate" in PHP

  1. Download the latest PEM file from here.
  2. Put it in PHP's SSL directory e.g. C:\Program Files\PHP\v8.0\extras\ssl\
  3. Edit your PHP configuration file (php.ini) - in the curl section, uncomment line and add the path to the PEM file e.g.:

    curl.cainfo = "C:\Program Files\PHP\v8.0\extras\ssl\cacert-2022-07-19.pem"

  4. Restart PHP.

No comments:

Post a Comment