PHP-SSL certificate problem: unable to get local issuer certificate


wamp遇到SSL認證問題

1. 下載認證包
2. 下載好的檔案可以放到wamp目錄下,像是 D:\wamp64
3. 檢查php版本,並編輯php.ini


4. 新增檔案位置

[curl]
curl.cainfo = "D:/wamp64/cacert.pem"

[openssl]
openssl.cafile="D:/wamp64/cacert.pem"


5. 重新啟動wamp services


參考網址

https://stackoverflow.com/questions/28858351/php-ssl-certificate-error-unable-to-get-local-issuer-certificate


留言