Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. MQTT SSL Support

MQTT SSL Support

Scheduled Pinned Locked Moved General Discussion
12 Posts 5 Posters 7.1k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • noelgeorgiN Offline
    noelgeorgiN Offline
    noelgeorgi
    wrote on last edited by
    #3

    Thanks for the reply but the controller already supports ssl, its the mysensors eso8266mqtt client that doesnt support ssl!!! :disappointed_relieved:

    AnticimexA 1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #4

      We're using the pubsubclient library for the MQTT communication:
      https://github.com/knolleary/pubsubclient

      From what I can tell it doesn't support the WiFiClientSecure at the moment. But I could be wrong.. just did a quick search among their issues on github.

      1 Reply Last reply
      0
      • noelgeorgiN noelgeorgi

        Thanks for the reply but the controller already supports ssl, its the mysensors eso8266mqtt client that doesnt support ssl!!! :disappointed_relieved:

        AnticimexA Offline
        AnticimexA Offline
        Anticimex
        Contest Winner
        wrote on last edited by
        #5

        @noelgeorgi Yes, but I am not doing controller specific adaptations to the library for signing/encryption. So your ssl feature in your specific gw is specific to you (and all others who happen to need ssl for MQTT).

        Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

        1 Reply Last reply
        0
        • noelgeorgiN Offline
          noelgeorgiN Offline
          noelgeorgi
          wrote on last edited by
          #6

          Thanks for the fast replies. This is the only forum i have seen with the fastest replies. @hek @Anticimex there really exist an mqtt library for esp8266 supporting SSL, any way to change to this: https://github.com/tuanpmt/esp_mqtt

          1 Reply Last reply
          0
          • hekH Offline
            hekH Offline
            hek
            Admin
            wrote on last edited by
            #7

            @noelgeorgi said:

            https://github.com/tuanpmt/esp_mqtt

            Please, go ahead and create your own GatewayTransport variant. Will probably be appreciated by others as well.

            1 Reply Last reply
            0
            • noelgeorgiN Offline
              noelgeorgiN Offline
              noelgeorgi
              wrote on last edited by noelgeorgi
              #8

              Already work in progress, esp8266 2.1.0 library added support for having ca certificates in SPIFFS memory, not enough documentation on using it....:sweat: :disappointed:
              https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/src/WiFiClientSecure.h#L52-L66

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jkandasa
                Plugin Developer
                wrote on last edited by
                #9

                https://github.com/knolleary/pubsubclient will not support for SSL. https://github.com/knolleary/pubsubclient/issues/23

                1 Reply Last reply
                0
                • noelgeorgiN Offline
                  noelgeorgiN Offline
                  noelgeorgi
                  wrote on last edited by
                  #10

                  you just have to change WiFiClient client; to WiFiClientSecure client;

                  1 Reply Last reply
                  0
                  • noelgeorgiN Offline
                    noelgeorgiN Offline
                    noelgeorgi
                    wrote on last edited by
                    #11

                    finally succeeded in implementing ssl for MQTT with esp8266!!!!!!!:smiley: :satisfied: :relaxed: will post in Development...... http://forum.mysensors.org/topic/3385/ssl-support-for-mqtt-on-esp8266

                    1 Reply Last reply
                    2
                    • F Offline
                      F Offline
                      flip
                      wrote on last edited by
                      #12

                      Did you have any success to implement SSL support to the mqtt broker?

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      13

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular