2016-03-05 121 views
0

在我的應用程序中使用Mailgun。在測試期間,我得到了這個錯誤在Windows下使用Laravel 5和XAMPP時出現cURL錯誤77

cURL error 60: SSL certificate problem: unable to get local issuer certificate 

沒問題,我之前在我的筆記本電腦上有這個錯誤。正在關注this instructions我解決了這個錯誤。在此之後,我的筆記本電腦一切正常。但在我的臺式電腦上,出現此錯誤:

cURL error 77: error setting certificate verify locations: 
CAfile: ‪C:\Users\Fabian\webserver\php\extras\ssl\cacert.pem 
CApath: none (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) 

cacert.pem文件位於此目錄中。在我的php.ini我添加下面一行:

curl.cainfo = "‪C:\Users\Fabian\webserver\php\extras\ssl\cacert.pem" 

目錄C:\用戶\費邊\ web服務器包含XAMPP文件(改變XAMPP在安裝過程中的網絡服務器)。

捲髮,網站上說,這個約77錯誤:

Problem with reading the SSL CA cert (path? access rights?)

不知道如何解決這個問題?

回答

0

在我的情況下(Windows 10和Xampp)這是一個訪問權限問題。 我解決了它簡單地把cacert.pem放在Xampp文件夾之外。

我只是說這對我的php.ini: curl.cainfo = 「C:\ CACERT \ cacert.pem」

相關問題