1

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.

dyln
  • 252
  • 1
  • 15
  • try: `rvm get head; rvm --autolibs=4 --debug requirements` - if it reports installing something then run `rvm reinstall 1.9.3` – mpapis Mar 28 '13 at 22:36
  • thanks, trying this now. can you explain what this does? is it just updating rvm and checking if i have the requirements? – dyln Mar 29 '13 at 20:49
  • looks like i have plenty of problems here... will update once I understand what i was missing. – dyln Mar 29 '13 at 20:49
  • @mpapis fixed my problem, would you like the answer karma? else i will answer my own question. – dyln Mar 30 '13 at 00:56

1 Answers1

11

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
mpapis
  • 52,729
  • 14
  • 121
  • 158