SSL issue installing bootstrap gem

萝らか妹 提交于 2019-12-25 08:13:12

问题


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>

回答1:


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

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


Edited


Download:

cacert.pem

From

curl.haxx.se/ca/cacert.pem

Save that file to !

C:\Path_to_RailsInstaller_directory\cacert.pem

or

D:Path_to_RailsInstaller_directory\cacert.pem

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

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

set SSL_CERT_FILE=C:\Path_to_RailsInstaller_directory\cacert.pem



来源:https://stackoverflow.com/questions/40137612/ssl-issue-installing-bootstrap-gem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!