I'm using a MinGW64-MSys2 environment. When I try to install a package with gem install <package name>
I get something like this SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/latest_specs.4.8.gz)
相关问题
- Mechanize getting “Errno::ECONNRESET: Connection r
- How to specify memcache server to Rack::Session::M
- Why am I getting a “C compiler cannot create execu
- Tomcat and SSL Client certificate
- reference to a method?
相关文章
- ssl配置问题
- Ruby using wrong version of openssl
- Intermittent “sslv3 alert handshake failure” under
- Difference between Thread#run and Thread#wakeup?
- how to call a active record named scope with a str
- “No explicit conversion of Symbol into String” for
- Segmentation fault with ruby 2.0.0p247 leading to
- How to detect if an element exists in Watir
Depends on what shell you use msys or mingw* and what ruby you use you need install ca-certificates package:
or
or
Try downloading the
http://curl.haxx.se/ca/cacert.pem
certificate. Then, point a special environment variable to it like that:export SSL_CERT_FILE=~/cacert.pem
After that, issue an update command:gem update --system
The problem should be solved after that. Relaunch the console and continue your work.