Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.9k views
in Technique[技术] by (71.8m points)

websocket - Can't connect to wss/ ssl Rabbitmq web stomp

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 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
question from:https://stackoverflow.com/questions/65645937/cant-connect-to-wss-ssl-rabbitmq-web-stomp

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...