首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用heroku获取捆绑包上的无效证书错误

使用heroku获取捆绑包上的无效证书错误
EN

Stack Overflow用户
提问于 2014-03-26 19:01:49
回答 1查看 741关注 0票数 3

我在云中有一个私有的gem存储库,可以通过https访问。证书是有效的并已签名。

问题是,在将使用此私有存储库的应用程序部署到Heroku时,我会得到以下输出:

代码语言:javascript
复制
Retrying source fetch due to error (2/3): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://mygemserver.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 bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
  Retrying source fetch due to error (3/3): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://mygemserver.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 bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
  Could not verify the SSL certificate for https://mygemserver.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 bit.ly/ruby-ssl. To connect without
  using SSL, edit your Gemfile sources and change 'https' to 'http'.
  Bundler Output: Fetching source index from https://mygemserver.com/
  Retrying source fetch due to error (2/3): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://mygemserver.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 bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
  Retrying source fetch due to error (3/3): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://mygemserver.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 bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
  Could not verify the SSL certificate for https://mygemserver.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 bit.ly/ruby-ssl. To connect without
  using SSL, edit your Gemfile sources and change 'https' to 'http'.
  !
  !     Failed to install gems via Bundler.
  !

  !     Push rejected, failed to compile Ruby app

看起来它无法验证证书。我在本地也遇到了同样的问题,可以通过运行'rvm osx-ssl-certs update‘来修复。此命令更新系统识别的证书捆绑包。我如何在Heroku中重现这种行为?

EN

回答 1

Stack Overflow用户

发布于 2014-03-27 17:23:53

事实证明,我们能够通过将由comodo提供的中间证书附加到证书本身来修复此问题。

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

https://stackoverflow.com/questions/22658935

复制
相关文章

相似问题

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