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

In Wamp server you will get following error by lot of times (like charge a credit card).

cURL error 60: SSL certificate: unable to get local issuer certificate
cURL error 60: SSL certificate: unable to get local issuer certificate - steptoinstall.com
You may try like restarting the Server, ssl_module enabled, php_curl enabled,.. but sill you get the same cURL problem, Please do following simple things,

Step 1: Download

You can download the cacert.pem file from here.
After download, extract that and get the clean format file.

Step 2. Place the cacert.pem

Please put that cacert.pem file in correct place.

D:\xampp\php\extras\ssl\cacert.pem

Step 3. Edit php.ini file

Open your php.ini file from following location
D:\xampp\php\php.ini
And add line like following,

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

Step 4. Start Server

Then Start/Restart your webserver.

Now you solved the cURL error 60: SSL certificate: unable to get local issuer certificate Problem.

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

The following two tabs change content below.
I am Karthik, software engineer by profession. You can find and follow me, from Social Media or here. Google+
This entry was posted in cURL, Error, local server, Wamp.

Leave a Reply

Your email address will not be published. Required fields are marked *

Please Fill this Sum * Time limit is exhausted. Please reload the CAPTCHA.