Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

MQTT, SSL, and Tunnel

Posted on 2014-10-22
2
Medium Priority
?
1,048 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 65

Accepted Solution

by:
btan earned 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Sometimes Administrators rights are not enough. These cases call for the SYSTEM account. The process in this article outlines the steps required to execute commands using the SYSTEM account.
An overview of cyber security, cyber crime, and personal protection against hackers. Includes a brief summary of the Equifax breach and why everyone should be aware of it. Other subjects include: how cyber security has failed to advance with technol…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

886 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