On Windows servers when connecting to a secure server via CURL, you must
provide and reference a file from the CURL library directly before calling
the connection. Here is how to do it:
STEP 1: DOWNLOAD THE FILE
1. Go to http://curl.haxx.se/
2. Download the full CURL package in your preferred format
3. Unzip the package
4. Locate the file 'ca-bundle.crt' in the 'lib' folder
5. Upload that file to your website
STEP 2: REFERENCE THAT FILE IN YOUR PHP SCRIPT
1. Add the following line before you call the CURL connection:
curl_setopt($ch, CURLOPT_CAINFO,
'D:\Domains\\\ca-bundle.crt');
An example might be:
curl_setopt($ch, CURLOPT_CAINFO,
'D:\Domains\mydomain.com\wwwroot\myfolder\ca-bundle.crt');