SSL问题安装bootstrap gem

我在Gemfile中添加了bootstrap 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> 

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

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