我正在尝试向包含用户ID和密码的ACS(Microsoft Access Control Service)发出Web请求,并将从ACS接收身份验证apikey。但是当我发送请求时,它会给出以下错误
卷曲错误:SSL证书问题:无法获取本地颁发者 证书
PHP代码
$temp = array('wrap_name'=>$wrap_name,'wrap_password'=>$wrap_password,'wrap_scope'=>$wrap_scope);
$temp = http_build_query($_POST);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$baseAdress);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $temp);
$output = curl_exec ($ch);
if(curl_exec($ch) === false)
{
echo 'Curl error: ' . curl_error($ch);
}
else
{
echo 'Operation completed without any errors';
}
curl_close ($ch);