SSL certificate problem, verify that the CA cert is OK Windows AWS

It’s a pretty common problem in Windows, curl used to include a list of accepted CAs, but no longer bundles ANY CA certs. So by default it’ll reject all SSL certificates as unverifiable.

You need just to set cacert.pem to curl.cainfo.

Since PHP 5.3.7 you could do:
1.download http://curl.haxx.se/ca/cacert.pem and save it somewhere.
2.update php.ini — add curl.cainfo = “PATH_TO/cacert.pem”

Otherwise you will need to do the following for every cURL resource:
curl_setopt ($ch, CURLOPT_CAINFO, “PATH_TO/cacert.pem”);

By Keenlio, October 23, 2014

What do you think?

Leave a Reply

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


− 6 = one

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>