【问题标题】:SSL issue installing bootstrap gem安装引导 gem 的 SSL 问题
【发布时间】:2016-10-19 17:09:04
【问题描述】:

我在 Gemfile 中添加了引导 gem,当我尝试运行 bundle install 时。它显示以下错误!

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Nir>cd c:\Sites\FrogBlog

c:\Sites\FrogBlog>bundle install

Fetching source index from https://rails-assets.org/
Retrying fetcher due to error (2/4): Bundler::Fetcher::CertificateFailureError C
ould not verify the SSL certificate for https://rails-assets.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most like
ly your system doesn't have the CA certificates needed for verification. For inf
ormation about OpenSSL certificates, see [...]

c:\Sites\FrogBlog>

【问题讨论】:

  • 请描述你想要什么?
  • 我想为 bootstrap 安装 bundle,或者我只想在我的博客中使用 bootstrap!!

标签: ruby-on-rails twitter-bootstrap bundle-install


【解决方案1】:

这是 Windows 上 railsinstaler 的问题,您可以使用此步骤修复它!

https://gist.github.com/fnichol/867550


已编辑


下载:

cacert.pem

来自

curl.haxx.se/ca/cacert.pem

将该文件保存到!

C:\Path_to_RailsInstaller_directory\cacert.pem

D:Path_to_RailsInstaller_directory\cacert.pem

现在通过设置 SSL_CERT_FILE 让 ruby​​ 了解您的证书授权包。

要在您当前的command prompt session 中设置它以Administrator 运行,请输入:

设置 SSL_CERT_FILE=C:\Path_to_RailsInstaller_directory\cacert.pem

【讨论】:

  • 如果对您有帮助,请告诉我!
  • 已完成,但我如何将其添加到控制面板。不知道!
  • 对不起,它说 cacert.pm 无法下载
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-11-10
  • 2013-05-22
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多