php 發郵件報錯unable to get local issuer certificate


 

發郵件的時候報錯,郵件沒法發送:SSL certificate: unable to get local issuer certificatephp

在Windows下,curl找不到CA證書去驗證對方的證書!安全

方法一:(極度不推薦,不安全)curl

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);ide

方法二:this

It's easy to fix (php 5.3.7 or higher) - Download a list file with an up-to-date certificate authorities, and add this setting to your php.iniurl

「 curl.cainfo=<path-to>cacert.pem 」ssl

from http://stackoverflow.com/questions/17478283/paypal-access-ssl-certificate-unable-to-get-local-issuer-certificate   get

相關文章
相關標籤/搜索