jmesnil / stomp-websocket

Stomp client for Web browsers and node.js apps
http://jmesnil.net/stomp-websocket/doc/
Apache License 2.0
1.43k stars 587 forks source link

add support for secure websocket (wss) #118

Open lauraerinmann opened 9 years ago

lauraerinmann commented 9 years ago

Hi there, As far as I can (please correct me if i'm wrong) tell stomp-websocket doesn't support wss. Are there any plans to include this in future releases?

rfox90 commented 9 years ago

It supports secure websockets. Or at least I am using them.

There's some browsers and brokers that don't play well together.

Perhaps you can provide more information.

JSteunou commented 9 years ago

It definitely supports wss I'm using it.

arreumb commented 8 years ago

Hello, I'm using J. Mesnil stomp javascript client to connect to an Apache Apollo broker but when I try to use wss I receive: "connection failed: WebSocket opening handshake was canceled". The server is signed with a valid certificate issued by a regular CA. I wasn't able to find any documentation on how the broker can use the certificate... Any help would be much appreciated..

lauraerinmann commented 8 years ago

I used a CA cert as well, but I used version 5.12 of activemq. This required storing the certs in some directory and wiring a bean to their location in the conf xml. I noticed this section for apollo: https://activemq.apache.org/apollo/documentation/user-manual.html#Broker_Configuration and https://activemq.apache.org/apollo/documentation/user-manual.html#Security

I had issues with the version of the JDK that I was using which could poitentially be a issue. It was resolved by adding a jar file, see the bug history here: https://issues.apache.org/jira/browse/APLO-287

arreumb commented 8 years ago

Thanks a lot for your help

Il giorno 01/dic/2015, alle ore 03:20, LM notifications@github.com ha scritto:

I used a CA cert as well, but I used version 5.12 of activemq. This required storing the certs in some directory and wiring a bean to their location in the conf xml. I noticed this section for apollo: https://activemq.apache.org/apollo/documentation/user-manual.html#Broker_Configuration and https://activemq.apache.org/apollo/documentation/user-manual.html#Security

I had issues with the version of the JDK that I was using which could poitentially be a issue. It was resolved by adding a jar file, see the bug history here: https://issues.apache.org/jira/browse/APLO-287

— Reply to this email directly or view it on GitHub.