涛显屈
支付 统一下单
老报错
60. SSL certificate problem: unable to get local issuer certificate
是怎么回事
$zs_cert = getcwd().'\\cert2\\apiclient_cert.pem';
$zs_key = getcwd().'\\cert2\\apiclient_key.pem';
//设置证书
//使用证书:cert 与 key 分别属于两个.pem文件
curl_setopt($ch,CURLOPT_SSLCERTTYPE, 'PEM');
curl_setopt($ch,CURLOPT_SSLCERT, $zs_cert);
curl_setopt($ch,CURLOPT_SSLKEYTYPE, 'PEM');
curl_setopt($ch,CURLOPT_SSLKEY, $zs_key);