Skip to content

Failed to connect to Mosquitto when using SSL/TLS over Websockets #236

@Bach-Nguyen-Dinh

Description

@Bach-Nguyen-Dinh

I'm using a self-signed certificate.

In mosquitto.conf:

_listener 9883
protocol websockets

cafile C:\Program Files\mosquitto\certs\ca.crt
certfile C:\Program Files\mosquitto\certs\server.crt
keyfile C:\Program Files\mosquitto\certs\server.key_

And in my web client:

_host = "192.168.1.105";
port = 9883;

useSSL: true_

But in Chrome, i got: WebSocket connection to 'wss://192.168.1.105:9883/mqtt' failed
and on the mosquitto debug output (-v option), I get nothing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions