I was trying to install cucumber gem for Ruby. Although there were few topics somewhat related to this, I can\'t find exact question with exact answer. When on Windows I try
I had the same issue a while back after moving to ruby 2.0.0
Follow the following steps to solve it
1)Visit the url http://curl.haxx.se/ca/cacert.pem save the contents as a .pem file(Do not save it as a text file.Make sure the extension is .pem)
2)Copy the file to any path in your local eg: C:\ruby200\ca_cert.pem (in my case)
3)Now add an Environment variable with Variable SSL_CERT_FILE and value "C:\ruby200\ca_cert.pem"(without quotes)(path is in my case.Replace with appropriate path) (Environment variables can be added by navigating to Computer -> Advanced Settings -> Environment Variables)
4)Close all your command prompts and restart them.Things should work fine now
This issue occurs due to changes in rubygems.org infrastructure.
Please follow the link below:
https://gist.github.com/luislavena/f064211759ee0f806c88
Hope it will help you.