Debug School

rakesh kumar
rakesh kumar

Posted on

cURL Error 60: SSL Certificate Problem

Resolving the Error – Solution

To resolve cURL error 60 on a local development environment like XAMPP or WAMP, or even on a Windows server:

Download the latest ‘cacert.pem’ file from the official cURL website or directly from http://curl.haxx.se/ca/cacert.pem
Save this file to a directory on your server. For WAMP, it could be

“C:\wamp64\bin\php\cacert.pem”,, 
Enter fullscreen mode Exit fullscreen mode

and for XAMPP

“C:\xampp\php\extras\ssl\cacert.pem”.
Enter fullscreen mode Exit fullscreen mode

Edit your php.ini file, which is the configuration file for PHP, to include the path to the “cacert.pem” file. Find the line that “contains ;curl.cainfo”, remove the semicolon to uncomment it, and set it to the path of your “cacert.pem” file, such as:

download folder

Image description

C:\xampp\php\php.ini

curl.cainfo="C:\xampp\php\extras\ssl\cacert.pem"

openssl.cafile="C:\xampp\php\extras\ssl\cacert.pem"
Enter fullscreen mode Exit fullscreen mode

Another solution: update windows by going setting

Image description

Another solution
change php or xampp version try
8.2,8.1

After applying all solution wait for sometime one day or two day

curl-error-60-ssl-certificate-problem

Top comments (0)