I have rails 4.1.8 with ruby version "ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]" in windows 8. I followed this tutorial to install ruby on rails-"http://installfest.railsbridge.org/installfest/windows". Now whenever I run any rails app I am getting this error-
Fetching source index from https://rubygems.org/ Retrying source fetch due to error (2/3):Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.org/. There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'. Retrying source fetch due to error (3/3): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.org/. There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'. Could not verify the SSL certificate for https://rubygems.org/. There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'. Shall I change the https to http? Is it secure?
v2.2.7and after upgrading to rubyv2.6.10the error was gone. I had to changegithub:togit:for the git-based gem definitions.