The correct fix for the SSL error is indeed to comment out this line, by adding the // as shown:
Code:
//    curl_setopt ($ch, CURLOPT_CAINFO, $key);