1. 程式人生 > >PHP出現SSL certificate: unable to get local issuer certificate的解決辦法

PHP出現SSL certificate: unable to get local issuer certificate的解決辦法

當本地curl需要訪問https時,出現SSL certificate: unable to get local issuer certificate錯誤資訊

解決辦法:

http://curl.haxx.se/ca/cacert.pem下載pem檔案,並將檔案拷貝到D:\phpStudy\PHPTutorial\cacert.pem

在php.ini
增加
curl.cainfo = "D:\phpStudy\PHPTutorial\cacert.pem"