Solved

MQTT, SSL, and Tunnel

Posted on 2014-10-22
2
806 Views
Last Modified: 2014-10-24
Can you tunnel MQTT inside HTTP(S) without it being TLS or SSL ?

Thanks
0
Comment
Question by:Anthony Lucia
2 Comments
 
LVL 62

Accepted Solution

by:
btan earned 500 total points
ID: 40399374
MQTT is a many-to-many communication protocol for passing messages between multiple clients through a central broker. It decouples producer and consumer by letting clients publish and having the broker decide where to route and copy messages. MQTT brokers may require username and password authentication from clients to connect. To ensure privacy, the TCP connection may be encrypted with SSL/TLS. In other words, it is still SSL/TLS for HTTPS connection.

Below is an instance of tunnelling MQTT through HTML5 websockets using node.js Streams.
https://github.com/mcollina/mows

So extending the WebSocket, I uderstand such connection starts its life with an HTTP or HTTPS handshake. When the page is accessed through HTTP, you can use WS or WSS (WebSocket secure: WS over TLS) . However, when your page is loaded through HTTPS, you can only use WSS - browsers don't allow to "downgrade" security.
http://en.wikipedia.org/wiki/WebSocket#Proxy_traversal

I believe https will still need tls - in fact https is mostly tls/ssl
0
 

Author Closing Comment

by:Anthony Lucia
ID: 40402243
Excellent Answer.  Thanks
0

Featured Post

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How important is it to take extra precautions to protect your online business? These are some steps you can take to make sure you're free of any cyber crime.
There are many Password Managers (PM) out there to choose from. PM's can help with your password habits and routines, but they should not be a crutch you rely on too heavily. I also have an article for company/enterprise PM's.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now