“gem install foundation"中的证书验证失败 [英] Certificate Verify Failed in "gem install foundation"

查看:15
本文介绍了“gem install foundation"中的证书验证失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装 nodejs、ruby 和 git plus bower 后尝试安装 Foundation.

Trying to install Foundation after installing nodejs, ruby, and git plus bower.

我不断收到以下错误,我不知道如何解决它:

I keep getting the following error and I dont know how to fix it:

找不到有效的 gem 'foundation' (>= 0),原因如下:无法从 https://rubygems.org/ 下载数据 - SSL_connect returned=1 errno=0 state=SSLv3 读取服务器证书 B:证书验证失败 (https://api.rubygems.org/latest_specs.4.8.gz)

Could not find a valid gem 'foundation' (>= 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/latest_specs.4.8.gz)

有什么想法吗?

推荐答案

如果你使用 RVM(强烈推荐)你可以运行

If you're using RVM (highly recommended) you can run

rvm osx-ssl-certs update all

否则,您可以按照 http://guides.rubygems.org/ssl- 上的说明进行操作certificate-update/ 虽然 update_rubygems 补丁对我没有任何帮助,但手动安装 .pem 文件可能会奏效.

Otherwise you can follow the directions at http://guides.rubygems.org/ssl-certificate-update/ and while the update_rubygems patch didn't do anything for me, manually installing the .pem file probably would have worked.

如果没有 RVM,链接建议您可以尝试...

Without RVM the link suggests that you can try...

gem install bundler

gem update --system

这篇关于“gem install foundation"中的证书验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆