Error SSL certificate problem: unable to get local certificate issuer
在Laravel實作Line Bot SDK的推播測試上遇到
SSL certificate problem: unable to get local certificate issuer
也就是curl出去時因為憑證認證失敗導致的問題
解決方法
方案一
下載 cacert.pem
# php.ini curl.cainfo="{{pem_path}}" openssl.cafile="{{pem_path}}"
方案二
curl_setopt($this->ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER, 0);
No Comment!
Join Us Discuss