我最近升級到OS X Mountain Lion,當我運行curl-config --ca
時,我得到一個空行。有關詳細捲曲:Mountain Lion升級後捲曲的SSL證書消失
curl 7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz
的問題是,我不能運行brew update
,除非我更新證書,因爲我得到以下錯誤:
Initialized empty Git repository in /usr/local/.git/
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/mxcl/homebrew.git/info/refs
fatal: HTTP request failed
Error: Failure while executing: git fetch origin
家釀幫助論壇說,我需要更新證書。但是,除非我能找到curl存儲證書的位置,否則我無法更新它。
編輯:由下面HeatfanJohn提出的解決方案:
I just noticed that there is a Macport for curl-ca-bundle. Sorry for the possibly simple question, but did you install curl or did it come preinstalled? You might want to consider installing MacPorts and then installing curl-ca-bundle using MacPorts, although looking quickly at the Portfile this MacPort appears to just put the bundle into /usr/share which you can also do manually.
的命令從MacPorts的安裝是port install curl
。從MacPorts安裝可解決問題。
我試過了,導出的CURL_CA_BUNDLE路徑,重新啓動我的機器,我仍然得到一個空行,當我運行'捲曲配置--ca'。任何其他想法? – 2012-08-01 19:43:36
如果你運行'curl --verbose -o null https:// github.com/mxcl/homebrew.git/info/refs' – HeatfanJohn 2012-08-01 21:04:07
'curl-config --ca'返回'/ usr/share/curl/curl-ca-bundle.crt'。 – HeatfanJohn 2012-08-02 11:46:11