首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Bundler::not::CertificateFailureError无法验证SSL证书

Bundler::not::CertificateFailureError无法验证SSL证书
EN

Stack Overflow用户
提问于 2022-08-05 19:39:21
回答 1查看 171关注 0票数 1

当我运行以下命令时,我试图在我的Linux系统上安装一个Ruby项目:

代码语言:javascript
复制
bundle install --jobs=$(nproc) --retry=5

我发现了一个错误:

这是上面命令的全部输出:

代码语言:javascript
复制
Fetching source index from https://enterprise.contribsys.com/

Retrying fetcher due to error (2/6): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://enterprise.contribsys.com/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see https://railsapps.github.io/openssl-certificate-verify-failed.html. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (3/6): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://enterprise.contribsys.com/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see https://railsapps.github.io/openssl-certificate-verify-failed.html. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (4/6): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://enterprise.contribsys.com/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see https://railsapps.github.io/openssl-certificate-verify-failed.html. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (5/6): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://enterprise.contribsys.com/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see https://railsapps.github.io/openssl-certificate-verify-failed.html. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying fetcher due to error (6/6): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://enterprise.contribsys.com/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see https://railsapps.github.io/openssl-certificate-verify-failed.html. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Could not verify the SSL certificate for https://enterprise.contribsys.com/.
There is a chance you are experiencing a man-in-the-middle attack, but most
likely your system doesn't have the CA certificates needed for verification. For
information about OpenSSL certificates, see https://railsapps.github.io/openssl-certificate-verify-failed.html. To connect
without using SSL, edit your Gemfile sources and change 'https' to 'http'.

在我的Gemfile中,我试图从https切换到http,但仍然存在相同的问题。

我一直在寻找答案,我发现这是一个与openssl和rvm如何管理它有关的问题,也是一个ca证书问题。

因此,我的问题是:是否有一种方法可以将捆绑安装与特定的openssl版本一起使用?

举个例子,如果我想安装一个不同的Ruby版本,我使用以下命令:

代码语言:javascript
复制
rvm install 2.7.6 --with-openssl-dir=$HOME/.rvm/usr --autolibs=disable

有什么提示如何克服这个错误吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-08-08 21:54:21

我找到的解决方案是切换到rbenv,之后,所有的问题都解决了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73254577

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档