2017-05-05 46 views
1

我以前有更新cocoapods一些SSL問題,並修復它我更新了rubygems。但是,我現在有一個新的錯誤。這就是我所做的和我得到了什麼:爲什麼我得到這個錯誤試圖更新cocoapods?

Alexs-MBP:~ alextyshka$ sudo gem install cocoapods Password: ERROR: SSL verification error at depth 2: certificate has expired (10) ERROR: Certificate /C=BE/O=GlobalSign nv-sa/OU=Root CA/CN=GlobalSign Root CA expired at 2014-01-28T12:00:00Z ERROR: SSL verification error at depth 2: certificate has expired (10) ERROR: Certificate /C=BE/O=GlobalSign nv-sa/OU=Root CA/CN=GlobalSign Root CA expired at 2014-01-28T12:00:00Z ERROR: SSL verification error at depth 2: certificate has expired (10) ERROR: Certificate /C=BE/O=GlobalSign nv-sa/OU=Root CA/CN=GlobalSign Root CA expired at 2014-01-28T12:00:00Z ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz) ERROR: SSL verification error at depth 2: certificate has expired (10) ERROR: Certificate /C=BE/O=GlobalSign nv-sa/OU=Root CA/CN=GlobalSign Root CA expired at 2014-01-28T12:00:00Z

我在網上看了各種各樣的事情有關到期GlobalSign的證書,但我真的不想搞砸了重要的東西在我的Mac。有什麼建議?

回答

1

我得到RubyGems沒有使用過期的證書從http://help.rubygems.org。並找到一個類似於你的問題ERROR: SSL verification error at depth 2: certificate has expired (10),也許給你一些幫助。

你可以試試:
1.如果你看到GlobalSign的CA證書已過期(2014年的),你需要獲取最新的CA根證書:fetch the latest CA root certificate, 請注意,過期的證書裏被刷新9年(2007年)。如果遇到此問題,請聯繫維護您的規範CA證書列表並將其指向上述URL的人員。
2.做好以下事項:

- Update ruby gems - http://guides.rubygems.org/ssl-certificate-update/ 
- Downloaded and installed the new SSL certificate -  http://guides.rubygems.org/ssl-certificate-update/ 
- Used RVM to update my system SSL certificates - http://railsapps.github.io/openssl-certificate-verify-failed.html 
+0

的步驟是在GlobalSign CA爲我的電腦很重要,因爲正如我說我不想搞砸關鍵的東西。另外,當我試圖獲得rvm版本時,它說我沒有rvm –

+0

您能解釋什麼是GlobalSign證書嗎?它是操作系統的一部分嗎?部分Ruby?寶石的一部分?我不是很有經驗的編碼,我只想做一個Cocoapods教程。 –

+0

GlobalSign證書是'Ruby的一部分',根據提示,你的Ruby證書已經過期 – liangju

相關問題