elixir-socket icon indicating copy to clipboard operation
elixir-socket copied to clipboard

Can't open a socket using SSL

Open RaphSfeir opened this issue 7 years ago • 2 comments

Hi there,

I have been trying to open a socket to some secured endpoints using the following command:

Socket.Web.connect! "ws-feed.gdax.com", secure: true

But with all secured URIs I get the following connection error:

** (Socket.Error) TLS Alert: bad record mac

Any clue on what parameter to use to solve this? I've been searching the doc of SSL as well about this, without much success yet.

Thanks!

RaphSfeir avatar Nov 12 '17 03:11 RaphSfeir

@RaphSfeir I had the same problem, if I use OTP 19.3 it works but not in 20.X You figured out how to fix this or where are the problem?

mbenatti avatar Jan 23 '18 08:01 mbenatti

@mbenatti Hey, yeah to be honest it started working again but I'm not sure of the reason. I updated my DNF packages on my machine (including the SSL libs) and switched to a more fresh version of Elixir (at the time probably 1.5.2). I'm running OTP 19.3 as well, and in this setup I don't have the error anymore.

But again, I'm not sure of the exact reason, it just started working again after I did all.

RaphSfeir avatar Jan 24 '18 11:01 RaphSfeir