安装Bootstrap Gem的SSL问题 [英] SSL issue installing bootstrap gem
问题描述
我在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
来自
将该文件保存到!
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屋!