WSS connection to STUNNEL does not work

0 投票
最新提问 用户: (120 分)

I want to connect secure websocket from (my windows laptop) to stunnel (running on a linux box 192.168.1.254) on port 7379 and receive some notifications on the websocket.

# cat stunnel.conf
output = /logs/output.log

[https]
accept  = 7379
connect = 7580

debug = 7
cert = /configs/server.crt
key = /configs/private_key.key
##only support high strength ciphers
ciphers= AES256
TIMEOUTclose = 0

while accessing the link below. https://192.168.1.254:7379/demo/rest/events/index.html

I got the following error.

The connection to wss://192.168.1.254:7379/m2m/re/subscriptions/[%7B%22topics%22:[%22com/nokia/smarthome/ndm/ALL%22]%7D] was interrupted while the page was loading.

Stunnel log file shows that the server has closed the connection.

I ran wireshark on my laptop and sniffed the packets. It just shows that TCP connection got closed as FIN packet was generated from the client.

Can you please let me know how to solve the above issue?

登录 或者 注册 后回答这个问题。

欢迎来到 Security Q&A ,有什么不懂的可以尽管在这里提问,你将会收到社区其他成员的回答。
...