2017-05-05 503 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