Comments (4)
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.
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.
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.
@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)
- Improving wolfSSL integration with the Espressif ESP-IDF
- --enable-quic --enable-opensslcoexist options are mutually exclusive HOT 2
- [Bug]: error: symbol already defined with WOLFSSL_SP_ASM enabled on ARM Compiler v6 with high size optimization (-Oz) HOT 1
- [Bug]: Parameter corruption passed in RCX register HOT 1
- [Bug]: Invalid instruction exception in sp_2048_get_from_table_32 HOT 7
- [Bug]: src/ssl.c:ProcessBuffer() different/broken behavior for same private key depending on PEM or ASN1 format HOT 16
- Support PKCS7_decrypt in OpenSSL compatibility layer
- Can not Collect Coverage Properly HOT 2
- [5.7.0] Unit.test failed on DTLS v1.3 during make test proccess HOT 3
- Licensing: FLOSS license exception, what is it? HOT 2
- Duplicate poly1305_blocks symbol when building with --enable-armasm and linking with both {wolf,open}ssl HOT 3
- pkcs11 TLS example: how to avoid performing symmetric crypto on token? HOT 3
- [pkcs11] wolfCrypt assumes slot enumeration starts from 0
- [Bug]: Can't establish TLS connections to https://traxxas.com/ HOT 3
- RFE: modernize PKCS#11 RSA mechanism to PKCS/PSS/OAEP HOT 6
- Cannot build wolfssl with liboqs integration HOT 2
- can I use wolfSSL without a CA cert? HOT 2
- [Bug]: The value of WOLFSSL_MAX_ALT_NAMES causes an error of ASN_ALT_NAME_E HOT 3
- AES CTR wolfcrypt interface need to support keys with ENCRYPT usage when encrypting HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wolfssl.