Can't connect to wss/ ssl Rabbitmq web stomp

362 views
Skip to first unread message

Muhammad Dani

unread,
Jan 9, 2021, 1:16:29 PM1/9/21
to rabbitmq-users
I was success to setup webstomp plugin/ websocket in Rabbitmq on a server, I check all listeners using command :

    rabbitmq-diagnostics listeners

and here was the output :

    Interface: [::], port: 15672, protocol: http, purpose: HTTP API
    Interface: [::], port: 61613, protocol: stomp, purpose: STOMP
    Interface: [::], port: 15674, protocol: http/web-stomp, purpose: STOMP over WebSockets
    Interface: [::], port: 15673, protocol: https/web-stomp, purpose: STOMP over WebSockets and TLS (HTTPS)
    Interface: [::], port: 25672, protocol: clustering, purpose: inter-node and CLI tool communication
    Interface: [::], port: 5672, protocol: amqp, purpose: AMQP 0-9-1 and AMQP 1.0
    Interface: [::], port: 5671, protocol: amqp/ssl, purpose: AMQP 0-9-1 and AMQP 1.0 over TLS

then I test the connection using [wscat][2] within command :

    wscat -c ws://st***re.com:15674/ws

and got success response (connected) :

    Connected (press CTRL+C to quit)

The issue when tryin to connect using wss (ssl) :

    wscat -c wss://st***re.com:15673/ws

it failed to connect :

    error: Client network socket disconnected before secure TLS connection was established

I dont have idea, what was wrong, probably someone can help ?

here is the rabbitmq.comf :

    listeners.ssl.default = 5671
    ssl_options.cacertfile = ca_certificate.pem
    ssl_options.certfile = server_certificate.pem
    ssl_options.keyfile = server_key.pem
    web_stomp.ssl.port       = 15673
    web_stomp.ssl.backlog    = 1024
    web_stomp.ssl.certfile   = server_certificate.pem
    web_stomp.ssl.keyfile    = server_key.pem
    web_stomp.ssl.cacertfile = ca_certificate.pem
    web_stomp.ssl.password   = bunnies

Reply all
Reply to author
Forward
0 new messages