SSL读取:errno -12192

时间:2013-06-15 17:52:08

标签: php ssl-certificate

我收到错误“SSL read:errno-12192”

实际上以前我的编程工作正常,但过了一周,我收到了错误:

  

SSL错误:SSL_ERROR_EXPIRED_CERT_ALERT

然后我用新证书替换了我的.pem文件,在更换后我得到'SSL读取:errno -12192'error。我的代码如下:

curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, TRUE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 1);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $params ); 
curl_setopt($ch, CURLOPT_CAINFO,  getcwd().'/ca.crt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSLCERT, getcwd().'/apna_generic_json.pem');
curl_easy_setopt(s, CURLOPT_SSLKEY,'/apna.pem'); 
curl_setopt($ch, CURLOPT_SSLCERTTYPE, "PEM");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

0 个答案:

没有答案