GithubHelp home page GithubHelp logo

Comments (4)

kareem-wolfssl avatar kareem-wolfssl commented on July 20, 2024

Hi @hitecSmartHome ,

To get wolfSSL working with ESP-IDF/Espressif, check out our example with documentation here: https://github.com/wolfSSL/wolfssl/tree/master/IDE/Espressif

from wolfssl.

gojimmypi avatar gojimmypi commented on July 20, 2024

Hi @hitecSmartHome

I can't find a comprehensive guide to replace ESP-TLS with WolfSSL.

We do not at this time have such a guide. Further, as with many engineering topics, replacing ESP-TLS: "it depends".

Without additional details on your project, my recommendation on the replacement is just that: completely remove the ESP-TLS and use wolfSSL directly unless there's a compelling reason to need both.

Although the ESP-IDF offers the ability to switch between crypto libraries, it adds an unnecessary layer of complexity. Further, the espressif/esp-wolfssl is not managed by wolfSSL and is typically stale. As of today, the submodule is 2 years old.

That said, I'd like to help. Can you provide a code example?

I wrote a wolfSSL blog on PlatformIO, There's also the IDE/PlatformIO with benchmark and test examples, but I've not had a chance to add the TLS Client and Server examples that are available for Arduino.

Regarding the error: Found both ESPIDF and ARDUINO. Pick one. - Please note that there are two PlatformIO libraries:

I've not yet used both the IDF and Arduino concurrently. Are you using the Arduino as an ESP-IDF component? If so, perhaps try using the Arduino-wolfSSL library instead.

Thank you for your interest in wolfSSL. We look forward to learning more about your project.

from wolfssl.

hitecSmartHome avatar hitecSmartHome commented on July 20, 2024

Thank you very much for the explanation.
I tought I can just replace mbedTLS in menuconfig with wolfssl if it's in libdeps and let the IDF libraries use that instead.
I'm not using it in my own code for any specific reasons, just https, wss connections trought IDF libraries.

ESP-TLS uses a lot of RAM, I needed a way to minimise this. But if it does not work out of the box I have no time to write my own wrappers.

Thank you very much again!

from wolfssl.

gojimmypi avatar gojimmypi commented on July 20, 2024

@hitecSmartHome that's correct: one should be able to select wolfSSL in the ESP-IDF.

Coincidentally, I'll be focusing on improving this in the very near future and updating the referenced wolfSSL library at espressif/esp-wolfssl. I have a new CMakeLists.txt in the examples that allows pointing to wolfSSL source code via searching parent directories, assigning cmake variable, or setting environment variable for WOLFSSL_ROOT.

If you'd like, I could help with your project? It would be great to have your feedback for either the ESP-TLS, or using wolfSSL directly. Note there are also wolfSSL TLS client and server examples to help you get started.

I've been able to do TLS 1.3 in as little as 32KB RAM + 256KB flash on the Arduino Nano 33 IoT SAMD21. See tweet thread.

Best Regards.

from wolfssl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.