Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL using Websocket Protocol #1002

Closed
satsdeva opened this issue Oct 29, 2018 · 5 comments
Closed

SSL using Websocket Protocol #1002

satsdeva opened this issue Oct 29, 2018 · 5 comments

Comments

@satsdeva
Copy link

satsdeva commented Oct 29, 2018

i used the following configuration for SSL web socket connection.

port 8883
protocol mqtt
cafile C:\mos\certs\ca.crt
keyfile C:\mos\certs\ia.key
certfile C:\mos\certs\ia.crt
require_certificate false
tls_version tlsv1.2

listener 9883
protocol websockets
cafile C:\mos\certs\ca.crt
keyfile C:\mos\certs\ia.key
certfile C:\mos\certs\ia.crt
require_certificate false
tls_version tlsv1.2

i tried to connect web client, i'm getting "failed: Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR"..

i'm not able to trace the error.Please suggest me , to resolve the error.
OS:Windows 2012 R2,
OpenSSL 1.0.2 ,
Mosquitto 1.4.9

@satsdeva satsdeva changed the title SSL in Websocket SSL using Websocket Protocol Oct 29, 2018
@ralight
Copy link
Contributor

ralight commented Oct 29, 2018

Did you compile the broker yourself? If not, websocket support isn't included in the provided 1.4.9 version. I'd suggest trying 1.5.3.

@satsdeva
Copy link
Author

@ralight : Without SSL,through web socket protocol method working.But,it is not working with SSL method.I will try with mosquitto1.5.3 & let you know.

@satsdeva
Copy link
Author

@ralight : i tried with 1.5.3 and open ssl 1.1.0i. and
i used the mqtt spy for the client connection.
i'm getting "SSLException: Unrecognized SSL message, plaintext connection?"

Created another java script web page for client connection.
Error: "ERR_SSL_PROTOCOL_ERROR Connection Failure -AMQJS0007E socket error.undefined."

Please suggest me how to debug the error.

@stoinov
Copy link

stoinov commented Nov 3, 2018

there might be a WS issue with 1.5.3 as per #1004

@ralight
Copy link
Contributor

ralight commented Nov 7, 2018

Yes, I'm pretty certain now this is the same as #1005, so I'm closing this as a duplicate. I realise your report was first, but #1005 better describes the issue.

@ralight ralight closed this as completed Nov 7, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants