Failed to configure ssl in wamp socket in my node.js project

I used angular-wamp as a client and Crossbar as a router. WAMP works fine when I used it without ssl (https). But when I tried to implement Secure WebSocket, it gives this error in the console:

WAMP connection closed unreachable { 
 reason: null,
 message: null,
 retry_delay: 2.052066390813223,
 retry_count: 2,
 will_retry: true 
}

but in the browser it shows Congrats! You are connected to the WAMP server!

I used wss: // localhost: 8080 / ws as the url in the connection. used this link as a link https://github.com/crossbario/crossbarexamples

Node.js server runs on 3000 ports.

Badly stuck, any help would be appreciated.

I accepted a temporary non-certified certification (usually our own certificate) for the local host, as well as 127.0.0.1, but still got something below.

In browser logs: Congratulations! You are connected to the WAMP server!

I accepted self-signed certification (localhost and 127.0.0.1):

127.0.0.1

Localhost

+4
source share
1 answer

Please go to https: // localhost: 8080 / ws with your web browser and accept a temporary unsecured certification (usually our own certificate), then you can go to your test web application without this error.

PS Recall that localhost and 127.0.0.1 should both be taken independently.

+3
source

Source: https://habr.com/ru/post/1648863/


All Articles