首頁  >  文章  >  後端開發  >  [curl] 60:SSL憑證問題

[curl] 60:SSL憑證問題

WBOY
WBOY原創
2016-08-04 09:20:041201瀏覽

用curl連結的時候出現上面這個問題。在Google上找到了答案,後來也修好了,但不知道是什麼原因,有知道的給解釋一下~~

解決方法連結:
https://laracasts.com/discuss...

<code>I had the exact same but on Windows & xampp. My solution was as simple as: Follow this link: http://curl.haxx.se/ca/cacert.pem Copy the entire page and save it in a: "cacert.pem"

Then in your php.ini file insert or edit the following line: curl.cainfo = "[pathtothisfile]\cacert.pem"

Problem solved</code>

回覆內容:

用curl連結的時候出現上面這個問題。在Google上找到了答案,後來也修好了,但不知道是什麼原因,有知道的給解釋一下~~

解決方法連結:
https://laracasts.com/discuss...

<code>I had the exact same but on Windows & xampp. My solution was as simple as: Follow this link: http://curl.haxx.se/ca/cacert.pem Copy the entire page and save it in a: "cacert.pem"

Then in your php.ini file insert or edit the following line: curl.cainfo = "[pathtothisfile]\cacert.pem"

Problem solved</code>
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn