Config wss emqx clusters

Install certbot in server

$ sudo apt update
$ sudo apt install certbot

Run Certbot to generate Let’s Encrypt certificate

$ sudo certbot certonly --standalone --preferred-challenges http -d example.com

Get cert.pem, chain.pem, fullchain.pem, privekey.pem

vim /../../example.com/privatekey.pem
vim /../../example.com/cert.pem
vim /../../example.com/fullChain.pem

Go to EMQX Dashboard then go to listener (http://example.com:18083/#/listener)

  • Click name with type is WSS
  • Scroll to SSL Settings
  • Change Cert, Key, CA Cert them click button update

Leave a Reply

Your email address will not be published. Required fields are marked *