PHP.ini
curl.cainfo="C:\php\extras\ssl\cacert.pem"
PHP code
//Tell cURL where our certificate bundle is located.
$certificate = "C:\php\extras\ssl\cacert.pem";
curl_setopt($ch, CURLOPT_CAINFO, $certificate);
curl_setopt($ch, CURLOPT_CAPATH, $certificate);
$certificate = "C:\php\extras\ssl\cacert.pem";
curl_setopt($ch, CURLOPT_CAINFO, $certificate);
curl_setopt($ch, CURLOPT_CAPATH, $certificate);
相關資料:
沒有留言:
張貼留言