Ruby gem cucumber SSL error and Gem sources

前端 未结 2 847
眼角桃花
眼角桃花 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

提交回复
热议问题