curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

this solve the issue