E-Book: Mosquitto – MQTT BROKER FOR IoT (Internet of Things)

Some of my books i wrote for CTS GMBH (http://CTS.at) are published by them at DigitalBooks24. The full list of published books is available here.

Mosquitto – MQTT BROKER FOR IoT (Internet of Things)

Available at DigitalBooks24 here

E-Book: Mosquitto  – MQTT BROKER FOR IoT (Internet of Things)

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


Table of Contents

Legal Notes

Introduction to IoT

IoT (Internet of Things) short info 8

IoT security problems with 9

MQTT Broker for IoT (Internet of Things) 11

Developers MQTT description on mqtt.org 11

Firewall Setup (Optional)

Description of firewall ports 13

Setup of this guide – Our Goal

Network setup 14

Our final setup will be 15

Download & Install Mosquitto

Download the software 17

Install and start the software 17

First configuration steps

Prepare the needed SSL certificates 19

We will need the following certificates 19

Server Black 19

Server White 21

Configure Mosquitto 22

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 pwfile 26

Black Server(pwfile) 27

White Server(pwfile) 27

Create aclfile 27

Black Server(aclfile sample) 28

White Server(aclfile) 28

Restart the server and check log 29

Black Server(Startup Messages) 29

White Server(Startup Messages) 29

Testing Setup with MQTT.fx

Introducion to MQTT.fx 31

Black Server(MQTT.FX connection settings) 32

White Server(MQTT.FX connection settings) 33

MQTT.FX tabs 33

Log 33

Broker Status 33

Scripts 34

Subscribe 34

Publish 35

A real life example using Owntracks

Prepare Owntracks setup 38

Install Owntracks on your smartphone 38

More Features

About The Author

Other Books By (Author)

Link List for this e-book

Mosquitto project page 44

Openfire download page 44

MQTT.fx project page 44

MQTT.fx download page 44

Authors e-book about SSL Certificates 44

Description of the XMPP protocol 44

MQTT project page 45

Owntracks Project Page 45

FreeBSD Project Page 45

Can I Ask A Favour?

About The Author

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.

A CTS Solutions IT-Pro Book