Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
10-Dec-2015
SAKURA Internet Research Center.
Senior Researcher / Naoto MATSUMOTO
MQTTS: mosquitto cheat sheet
SOURCE: SAKURA Internet Research Center. 12/2015
# uname -sr ; cat /etc/redhat-release
Linux ...
Upcoming SlideShare
Loading in …5
×

MQTTS mosquitto - cheat sheet -

1,324 views

Published on

MQTTS mosquitto - cheat sheet -

10-Dec-2015
SAKURA Internet Research Center. 
Senior Researcher / Naoto MATSUMOTO

Published in: Technology
  • Be the first to comment

MQTTS mosquitto - cheat sheet -

  1. 1. 10-Dec-2015 SAKURA Internet Research Center. Senior Researcher / Naoto MATSUMOTO
  2. 2. MQTTS: mosquitto cheat sheet SOURCE: SAKURA Internet Research Center. 12/2015 # uname -sr ; cat /etc/redhat-release Linux 2.6.32-573.8.1.el6.x86_64 CentOS release 6.7 (Final) # cd /opt # yum groupinstall "Development Tools" -y # yum install wget openssl-devel c-ares-devel libuuid-devel libcurl-devel epel-release -y # wget http://mosquitto.org/files/source/mosquitto-1.4.5.tar.gz # tar xzvf ./mosquitto-1.4.5.tar.gz; cd mosquitto-1.4.5 # make; make install; cd /etc/mosquitto/; useradd mosquitto # wget https://github.com/owntracks/tools/raw/master/TLS/generate-CA.sh . # bash ./generate-CA.sh # vi /etc/mosquitto/mosquitto.conf port 8883 cafile /etc/mosquitto/ca.crt capath /etc/mosquitto/ certfile /etc/mosquitto/hostname.crt keyfile /etc/mosquitto/hostname.key require_certificate false MQTTS Broker MQTTS Publisher MQTTS Subscriber # scp username@hostname:/etc/mosquitto/ca.crt /etc/mosquitto/ # mosquitto_pub -h hostname -p 8883 -t topic -m test --cafile /etc/mosquitto/ca.crt --insecure # scp username@hostname:/etc/mosquitto/ca.crt /etc/mosquitto/ # mosquitto_sub -h hostname -p 8883 -t topic --cafile /etc/mosquitto/ca.crt --insecure

×