2016-01-20 78 views
0

嘗試同步我的magento2管理面板市場帳戶,並收到此錯誤:magento2市場管理同步錯誤

error setting certificate verify locations: 
CAfile: F:\xampp\ca-bundle\ca-bundle.crt CApath: none 

CMS安裝以https和SSL自簽名證書,系統爲localhost - Windows 7的

在php.ini加入此:

[curl] 
curl.cainfo="F:\xampp\ca-bundle\ca-bundle.crt" 
openssl.cafile="F:\xampp\ca-bundle\ca-bundle.crt" 

正如我處理權限和目錄根據讀爲Linux此問題應是可讀的。但我的系統安裝在C:/ so for F:/任何目錄都應該可用。 與此相關的問題是什麼?如何解決它? 謝謝。

回答

0

我發現這個問題的解決方案,讓我們試試這個如下:
http://chrisschuld.com/2008/07/how-to-fix-the-curl-error-error-setting-certificate-verify-locations/
(該解決方案適用於Linux)

隨着XAMPP在Windows上,讓嘗試:XAMPP
1.打開文件server.crt這\ apache \ conf \ ssl.crt
2.複製server.crt的內容並粘貼到xampp \ perl \ vendor \ lib \ Mozilla \ CA中的cacert.pem的結尾3.添加到php.ini的結尾: curl.cainfo =「D:\ xampp \ perl \ vendor \ lib \ Mozilla \ CA \ cacert.pem」
4.重新啓動您的Xampp

參考:https://yikesplugins.com/support/knowledge-base/i-receive-the-error-ssl-certificate-problem-unable-to-get-local-issuer-certificate-why/

+0

謝謝。我在你的第一個鏈接上找到了cacert.pem並添加了它。一切還好。 –