Ruby gem cucumber SSL error and Gem sources

前端 未结 2 816
眼角桃花
眼角桃花 2021-01-16 16:02

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

相关标签:
2条回答
  • 2021-01-16 16:05

    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

    0 讨论(0)
  • 2021-01-16 16:30

    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.

    0 讨论(0)
提交回复
热议问题