SSL Handshake Failed Node JS


#1

Hi,

I tried connecting to my instance using Node Js sample code provided.
but it shows

Connection[1]: Connected to endpoint ‘52.36.118.144:443’ (from ‘127.0.0.1:52647’)
ERROR: Connection[1]: SSL handshake failed: certificate verify failed
Connection[1]: Connection closed due to error

I also tried changing ‘realms://’ url to ‘realm://’ url then throws following error

Connection[1]: Connected to endpoint ‘54.149.228.61:80’ (from ‘127.0.0.1:52608’)
ERROR: Connection[1]: Writing failed: End of input
Connection[1]: Connection closed due to error


#2

Are you using the Node.js sample code from the Realm Studio tutorial? Are you running this from a windows machine by any chance?


#3

Yes I’m using sample code from realm studio tutorial.
and yes it’s a windows 10 machine.

I even tried it on ubuntu 16 but same error on that machine too.


#4

Just reproduced on my end. Working to get a resolution and will update you.


#5

We have an issue with our clients rejecting SSL certificates. We will soon fix this problem.
In the mean time, you can disable the certificate check with

validate_ssl: false

in the config:

Realm.open({
sync: {
url: realms://${SERVER}/~/tickers,
user: user,
validate_ssl: false,
},
schema: [TickerSchema],
})

Try that. It is still SSL. The certificate is just always accepted.


#6

Hi,
Yes it is working now.

Thank you for your response
cheers