Mosquitto - MQTT BROKER FOR IoT (Internet of Things)
Guide to setup a free and secure MQTT network using 2 bridged brokers, SSL encryption and Cert based authentication.
Basic setup guide with pictures and sample configs!
Real life example using Owntracks App!
IoT (Internet of Things) short info
The Internet of Things (IoT) will massive change the world of IT professionals. Machine-to-machine communication, home automation and other new ways of communication or management will deeply move into the business and private world.
IoT is the next multi-billion dollar tech market where IT professionals will meet people from home automation, office and production automation, PLC (programmable logic controller) developers and transportation engineers. All of them are fighting for their part of the market.
Customers wants to switch heating on or off from their smartphone in the same way as they want to control home or office lights, doors, cams and even the fridge. Not enough, they want the lights go on the time they arrive at home, wants to see the location of family members or business staff on maps and far more.
Machines will communicate with machines to securely drive without a human, order missing food in your home and alert in case of emergency.
Developer, designers and managers already have $ signs in their eyes every time thinking about the M2M (machine-to-machine) market.
I am not sure we really want to have that way of control and communication entering and changing our personal live that much, but we will have to live with it and so we have to deal with the security of IoT.
Introducing a fully featured Open Source Software, available as source code and binary version for Windows, Linux and MAC.
Table of Contents
Introduction
Table of Contents
Legal Notes
Introduction to IoT
IoT (Internet of Things) short info8
IoT security problems with9
MQTT Broker for IoT (Internet of Things)11
Developers MQTT description on mqtt.org11
Firewall Setup (Optional)
Description of firewall ports13
Setup of this guide – Our Goal
Network setup14
Our final setup will be15
Download & Install Mosquitto
Download the software17
Install and start the software17
First configuration steps
Prepare the needed SSL certificates19
We will need the following certificates19
Server Black19
Server White21
Configure Mosquitto22
Black Server(copy certificates)22
White Server(copy certificates)23
Both Servers(mosquitto.conf)24
Black Server(mosquitto.conf)25
White Server(mosquitto.conf)25
Create users in pwfile26
Black Server(pwfile)27
White Server(pwfile)27
Create aclfile27
Black Server(aclfile sample)28
White Server(aclfile)28
Restart the server and check log29
Black Server(Startup Messages)29
White Server(Startup Messages)29
Testing Setup with MQTT.fx
Introducion to MQTT.fx31
Black Server(MQTT.FX connection settings)32
White Server(MQTT.FX connection settings)33
MQTT.FX tabs33
Log33
Broker Status33
Scripts34
Subscribe34
Publish35
A real life example using Owntracks
Prepare Owntracks setup38
Install Owntracks on your smartphone38
More Features
About The Author
Other Books By (Author)
Link List for this e-book
Mosquitto project page44
Openfire download page44
MQTT.fx project page44
MQTT.fx download page44
Authors e-book about SSL Certificates44
Description of the XMPP protocol44
MQTT project page45
Owntracks Project Page45
FreeBSD Project Page45
Can I Ask A Favour?
Karl M. Joch is founder of CTS GMBH with more than 30 years experience in national and international projects. He worked in over 15 countries.
Guide to setup a free and secure MQTT network using 2 bridged brokers, SSL encryption and Cert based authentication.
Basic setup guide with pictures and sample configs!
Real life example using Owntracks App!
IoT (Internet of Things) short info
The Internet of Things (IoT) will massive change the world of IT professionals. Machine-to-machine communication, home automation and other new ways of communication or management will deeply move into the business and private world.
IoT is the next multi-billion dollar tech market where IT professionals will meet people from home automation, office and production automation, PLC (programmable logic controller) developers and transportation engineers. All of them are fighting for their part of the market.
Customers wants to switch heating on or off from their smartphone in the same way as they want to control home or office lights, doors, cams and even the fridge. Not enough, they want the lights go on the time they arrive at home, wants to see the location of family members or business staff on maps and far more.
Machines will communicate with machines to securely drive without a human, order missing food in your home and alert in case of emergency.
Developer, designers and managers already have $ signs in their eyes every time thinking about the M2M (machine-to-machine) market.
I am not sure we really want to have that way of control and communication entering and changing our personal live that much, but we will have to live with it and so we have to deal with the security of IoT.
Introducing a fully featured Open Source Software, available as source code and binary version for Windows, Linux and MAC.
Table of Contents
Introduction
Table of Contents
Legal Notes
Introduction to IoT
IoT (Internet of Things) short info8
IoT security problems with9
MQTT Broker for IoT (Internet of Things)11
Developers MQTT description on mqtt.org11
Firewall Setup (Optional)
Description of firewall ports13
Setup of this guide – Our Goal
Network setup14
Our final setup will be15
Download & Install Mosquitto
Download the software17
Install and start the software17
First configuration steps
Prepare the needed SSL certificates19
We will need the following certificates19
Server Black19
Server White21
Configure Mosquitto22
Black Server(copy certificates)22
White Server(copy certificates)23
Both Servers(mosquitto.conf)24
Black Server(mosquitto.conf)25
White Server(mosquitto.conf)25
Create users in pwfile26
Black Server(pwfile)27
White Server(pwfile)27
Create aclfile27
Black Server(aclfile sample)28
White Server(aclfile)28
Restart the server and check log29
Black Server(Startup Messages)29
White Server(Startup Messages)29
Testing Setup with MQTT.fx
Introducion to MQTT.fx31
Black Server(MQTT.FX connection settings)32
White Server(MQTT.FX connection settings)33
MQTT.FX tabs33
Log33
Broker Status33
Scripts34
Subscribe34
Publish35
A real life example using Owntracks
Prepare Owntracks setup38
Install Owntracks on your smartphone38
More Features
About The Author
Other Books By (Author)
Link List for this e-book
Mosquitto project page44
Openfire download page44
MQTT.fx project page44
MQTT.fx download page44
Authors e-book about SSL Certificates44
Description of the XMPP protocol44
MQTT project page45
Owntracks Project Page45
FreeBSD Project Page45
Can I Ask A Favour?
Karl M. Joch is founder of CTS GMBH with more than 30 years experience in national and international projects. He worked in over 15 countries.