Try adding:
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
to the list of options. (anywhere in that list should be fine).
Joined: 12/28/2007