#### 1. 報(bào)錯(cuò)分析 --- **使用 EasyWeChat 生成小程序碼時(shí)出現(xiàn)以下錯(cuò)誤** ![](https://img.itqaq.com/art/content/28e53be4f90923ecb1804f721bdccd44.png) cURL error 60: SSL certificate problem: unable to get local issuer certificate cURL錯(cuò)誤60 : SSL證書問(wèn)題:無(wú)法獲取本地頒發(fā)者證書 導(dǎo)致該問(wèn)題的原因在于沒(méi)有配置curl.cainfo,該配置位于php.ini中 #### 2. 下載 cacert.pem --- [https://curl.haxx.se/ca/cacert.pem](https://curl.haxx.se/ca/cacert.pem) #### 3. 修改 php.ini --- 搜索 `curl.cainfo`, 可找到以下內(nèi)容 ~~~ [curl] ; A default value for the CURLOPT_CAINFO option. This is required to be an ; absolute path. ;curl.cainfo = ~~~ 修改后 ~~~ curl.cainfo = "E:/PHP73/cacert.pem" ~~~