The server
The server listens on the following ports:
8884 : MQTT, encrypted, client certificate required
8080 : MQTT over WebSockets, unencrypted
8081 : MQTT over WebSockets, encrypted
mosquitto_pub -h test.mosquitto.org -t kawsing --cert testmqtt.crt --key client.key -m "haha"
mosquitto_sub -h test.mosquitto.org -t kawsing --cert testmqtt.crt --key client.key