I have a emqx mqtt broker running on EC2 and the ssl and wss configuration looks like this -
listener.ssl.external = 8883
listener.ssl.external.keyfile = /etc/emqx/certs/key.pem
listener.ssl.external.certfile = /etc/emqx/certs/cert.pem
listener.ssl.external.cacertfile = /etc/emqx/certs/cacert.pem
listener.ws.external = 8083
listener.wss.external = 8084
listener.wss.external.keyfile = /etc/emqx/certs/key.pem
listener.wss.external.certfile = /etc/emqx/certs/cert.pem
listener.wss.external.cacertfile = /etc/emqx/certs/cacert.pem
listener.wss.external.verify = verify_none
listener.wss.external.fail_if_no_peer_cert = false
When I try to connect to broker using emqx dashboard(hosted on http) without ssl(ws://IP:8083/mqtt), it works fine but when I use emqx dashboard(hosted on https) with ssl(wss://IP:8084/mqtt), it doesn't connect. How to connect to broker through https on wss?
Edit: I want one way authentication. I will be connecting to the broker from React Web app and also through NodeJS app. So, I don't want to provide certificate from client side. The certificates I am using are the ones provided by EMQX installation. Also, I am using the client certificates provided by EMQx for https ssl. And if the browser is opening the https without any warning, it should also be able to connect to websocket.