Websocket SSL handshake problem


I am trying to connect to mdash notify endpoint from my aws ec2 machine, and it seems there is an ssl handshake error. This was working for almost a year now, i dont have any code changes done. Seems error is since new certificate is installed on mdash side.
nested exception is java.util.concurrent.ExecutionException: java.io.IOException: UT003035: Connection timed out

i am trying to connect through this endpoint: wss://mdash.net/api/v2/notify?access_token=XXXXXXXXXXXXXXX

I also made some modifications for test and connected succesfully to piesocket.com-s websocket-tester instead of mdash. Everything works fine.
If someone could take a look in logs this was a connection attempt which failed: 2021-12-14 20:05:03.904
(If my api key helps, tell me and will send in private)

Thanks in advance!


I am using this test script which works just fine:

// Simulate mdash.net device. To run this script, install ws library first:
// $ npm -g i ws
// $ node devsim.js MDASH_DEVICE_TOKEN

const Websocket = require('ws');  // npm install -g ws
const pass = process.argv[2];     // Device password
const addr = 'wss://mdash.net/api/v2/rpc?access_token=' + pass;
const ws = new Websocket(addr, {origin: addr});

ws.on('error', msg => console.log(msg.toString()));
ws.on('message', msg => {
  const obj = JSON.parse(msg.toString());
  console.log('Got message:', obj);
  if (obj.method == 'Sys.GetInfo')  // Answer on Sys.GetInfo RPC call
    ws.send(JSON.stringify({id: obj.id, result: {app: 'sim', arch: 'js'}}));

// Send a HTTP.Request notification
    ev => ws.send(JSON.stringify({
      method: 'HTTP.Request',
      params: {
        url: 'http://httpbin.org/post',
        method: 'POST',
        body: 'foo=bar',
        headers: {HDR1: 'custom header'}