January 8, 2023
$ apt-get update
$ apt-get upgrade
$ mkdir ./mosquitto-data
note: change the following username and password
$ cd ./mosquitto-data
$ sudo curl -s https://raw.githubusercontent.com/MahdadGhasemian/mqtt-broker/main/install-mqtt-broker.sh | bash -s username password
copy the last line of the log and run it on your local system like this:
$ sudo bash -c "echo "x.x.x.x mqtt-host-tekp" >> /etc/hosts"
copy client folder to your local, it has three files (ca.crt client.crt client.key)