elixir-socket
elixir-socket copied to clipboard
Can't open a socket using SSL
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 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 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.