SSL certificate problem: unable to get local issuer certificate

5
(1)

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: 1

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

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

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