I'm having a very similar issue to another thread, but instead of trying to install a gem, I'm just trying to use the net/http gem, and getting the same SSL certificate error:
in 'connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL:SSLError)
I've applied the Rubygems 2.0.15 update referenced in the other thread, and I've verified that Rubymine is using Rubygems 2.0.15 (Tools > Show Gem Environment). When that didn't work, I looked at the manual steps and determined that the manual steps described were completed, probably by the 2.0.15 upgrade. That is, there is a file AddTrustExternalCARoot-2048.pem
in the directory C:\Ruby200-x64\lib\ruby\2.0.0\rubygems\ssl_certs
, and that file's content matches the file described in the manual steps.
I also verified the certificate of the URL I'm trying to reach is valid/correct in a browser. (The URL is internal, so I'm unable to provide it.)
I can also see in Rubymine that the error is coming from the net/http gem in the same path - C:\Ruby200-x64\lib\ruby\2.0.0\net\http.rb
The time wasted trying to sort out this problem is very frustrating, so any ideas or suggestions would be appreciated.