I am running Ruby 2.2.5 and RubyGems 2.2.3
I am new to programming and have been learning RubyGems and how to update them. Whenever I try to do anything from the Rubygems servers I get this error :
ERROR: Could not find a valid gem 'rspec' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/latest_specs.4.8.gz)
I have noticed that alot of people have had this problem and used the a workaround by turning of the SSL verification.
require 'openssl'
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
How dangerous is this workaround and how can I turn it back on?