繁体   English   中英

安装Bootstrap Gem的SSL问题

[英]SSL issue installing 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>

这是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身份运行,请设置此command prompt session

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM