我在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>
答案 0 :(得分:1)
这是windows上的railsinstaler的一个问题,你可以使用这个步骤修复它!
https://gist.github.com/fnichol/867550
下载:
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