“bad ecpoint” SSL error on fresh RVM Ruby 1.9.3 install on OSX Mountain Lion

匿名 (未验证) 提交于 2019-12-03 01:06:02

问题:

Trying to use Ruby 1.9.3 & rest-client to make https requests like:

RestClient.get('https://google.com') 

always gives me a SSL error,

OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint 

which I cannot figure out. bad ecpoint?

I've had no trouble making the same request with 1.9.3 & rest-client on another Mountain Lion machine.

Notes about this machine: MacBook pro with fresh Mountain Lion install, where I originally had some trouble installing gcc-4.2 via the XCode command line tools, but eventually got gcc-4.2 via homebrew/dupes. I've uninstalled & reinstalled RVM and 1.9.3 since then.

回答1:

Explaining my comment...

Update RVM to latest development version (but stable should work too):

rvm get head 

Install all required libraries for ruby (autolibs=4 is for full automation):

rvm --autolibs=4 --debug requirements 

Finally reinstall ruby:

rvm reinstall 1.9.3 

You can enable full library automation within RVM for next commands with:

rvm autolibs enable 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!