[英]I get “Certificate Verify Failed” on installing Bundler for Ruby on Rails, on Windows 7. Ruby 1.9.3
I've tried everything what I understood in my short knowladge of Programming. 我在编程的简短知识中尝试了所有我理解的东西。
When I enter "bundler install" I get "Certificate Verify Failed" (I've checked the certificate, it's updated) Then it ends up with "Make sure "gem install [gem's name] -v [version] succeds before bundling." 当我输入“bundler install”时,我得到“证书验证失败”(我已经检查了证书,它已更新)然后它最终以“确保”宝石安装[宝宝的名字] -v [版本]在捆绑之前成功。“
So I decided to install Gem-per-Gem, instead of trying to solve they certificate issue. 所以我决定安装Gem-per-Gem,而不是试图解决他们的证书问题。
Will this work or I'm just wasting my time? 这会有用吗还是我只是在浪费时间?
Found it! 找到了!
https://gist.github.com/luislavena/f064211759ee0f806c88 https://gist.github.com/luislavena/f064211759ee0f806c88
Most importantly...download https://raw.githubusercontent.com/rubygems/rubygems/master/lib/rubygems/ssl_certs/AddTrustExternalCARoot-2048.pem 最重要的是...下载https://raw.githubusercontent.com/rubygems/rubygems/master/lib/rubygems/ssl_certs/AddTrustExternalCARoot-2048.pem
Figure out where to stick it 找出坚持下去的地方
C:\>gem which rubygems
C:/Ruby21/lib/ruby/2.1.0/rubygems.rb
Then just copy the .pem file in ../2.1.0/rubygems/ssl_certs/ and go on about your business. 然后只需复制../2.1.0/rubygems/ssl_certs/中的.pem文件,继续关注您的业务。
NOTE The above link is currently down as of 10/12/2016. 注意上述链接目前已于2016年12月10日停止。 Commentary led me to do some follow-up research and it appears to be a continuing problem and is not being directly discussed.
评论让我做了一些后续研究,这似乎是一个持续的问题,并没有直接讨论。 There are other topics directly on the rubygems KB you may want to follow --> http://help.rubygems.org/search?utf8=%E2%9C%93&q=SSL+Certs&t=d&scope=all&category_id=&recommend=1
您可能想要遵循的rubygems KB上还有其他主题 - > http://help.rubygems.org/search?utf8=%E2%9C%93&q=SSL+Certs&t=d&scope=all&category_id=&recommend=1
尝试用GemFile中的http://rubygems.org替换“ https://rubygems.org ”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.