“bad ecpoint” SSL error on fresh RVM Ruby 1.9.3 in

2019-01-27 06:30发布

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条回答
成全新的幸福
2楼-- · 2019-01-27 07:13

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
查看更多
登录 后发表回答