安装Bootstrap Gem的SSL问题 [英] SSL issue installing bootstrap gem

查看:114
本文介绍了安装Bootstrap Gem的SSL问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Gemfile中添加了引导程序gem,当我尝试运行 捆绑安装 时.它显示以下错误!

I added the bootstrap gem in the Gemfile and when I try to run bundle install. It shows following error!

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>

推荐答案

这是Windows上的railsinstaler的问题,您可以使用以下步骤来解决它!!

This an issue with railsinstaler on windows, you may fix it using this steps !!

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

下载:

cacert.pem

cacert.pem

来自

curl.haxx.se/ca/cacert.pem

将该文件保存到!

C:\ Path_to_RailsInstaller_directory \ cacert.pem

C:\Path_to_RailsInstaller_directory\cacert.pem

D:Path_to_RailsInstaller_directory \ cacert.pem

D:Path_to_RailsInstaller_directory\cacert.pem

现在,通过设置SSL_CERT_FILE,使ruby知道您的证书颁发机构捆绑包.

Now make ruby aware of your certificate authority bundle by setting SSL_CERT_FILE.

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

To set this in your current command prompt session run as Administrator, type:

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

set SSL_CERT_FILE=C:\Path_to_RailsInstaller_directory\cacert.pem

这篇关于安装Bootstrap Gem的SSL问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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