5
(2)

If you are getting a SSL error while using cURL on localhost, similar to

SSL certificate problem: unable to get local issuer certificate

We have solution for this. Go to: https://curl.haxx.se/ca/cacert.pem and save it in you www folder And add this line in php.ini
curl.cainfo = "[C:/folder/cacert.pem"
eg:curl.cainfo = "C:/wamp/www/cacert.pem"

Make sure you have saved file on the same location with same name - cacert.pem

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 2

No votes so far! Be the first to rate this post.