2017-03-04 85 views
0

我想在我的本地谷歌的OAuth PHP和得到這個錯誤!我能做些什麼未捕獲的異常「GuzzleHttp 異常 RequestException」有消息「捲曲錯誤60

未捕獲的異常‘GuzzleHttp \異常\ RequestException’與消息 '弧線錯誤60:SSL證書問題:無法獲取本地頒發者證書(見

http://curl.haxx.se/libcurl/c/libcurl-errors.html)' 在 C:\ \谷歌\供應商WAMP \ WWW \ guzzlehttp \狂飲的\ src \處理器\ CurlFactory.php

上線187

+5

可能出現[cURL錯誤60:SSL證書:無法獲取本地頒發者證書]的副本(http://stackoverflow.com/questions/29822686/curl-error-60-ssl-certificate-unable-to-獲得本地發行者證書) – shaggy

回答

0
  1. 下載CA fiile 「捲曲http://curl.haxx.se/ca/cacert.pem -o cacert.pem」
  2. 我的文件 「cacert.pem」 移至 「/wwwroot/ca/cacert.pem」
  3. 打開文件php.ini,啓用openssl,並找到「openssl.cafile」,設置「openssl.cafile =/wwwroot/ca /​​ cacert.pem」
  4. 重新啓動web服務器(nginx/apache)或重新打開終端。
  5. 享受。
相關問題