-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Ethernet and SSL/TLS? #3277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
TLS support currently uses some of the WiFiClient internals ( I'll keep this issue open, but be advised that I'm not planning to work on this. |
Hello ... thank you for the response. This confirmed my suspicions, and your response is both helpful and expected. I know this is not the ESP32 repo/issues ... but my guess would also be that any work done on this would not be reused in the new ESP32 versions of code as the ESP32 has a completely different Ethernet hardware implementation, and hardware support for SSL/TLS? |
The reason why this work will not be reused for the ESP32 is mostly due to the fact that different TLS libraries are used — on the ESP8266 we use axTLS and on ESP32 we use mbedTLS. But the overall pattern of introducing a mixin class for TLS features and then using it to create TLS-enabled versions of Client class for each interface (WiFi, Ethernet) can be taken there. |
@Humancell, did you get any further with this? I have ethernet connected to an ESP8266 and it would be beyond amazing if I could use the TLS support that I currently use with WiFi. @igrr, I know you are extremely busy and the ESP8266 is probably not that high on the priority list as it used to be. Can you provide any updates on 'if' TLS might ever get into Ethernet for the ESP8266? I would attempt to do what you mentioned in your first post, but my code skill level is not that good. I would not know where to start. Do you have, or is there some sort of guide that could help me with this? |
I don't have plans for something like EthernetClientSecure myself, but i don't see why it wouldn't be possible to implement. If you are willing to look into this, I would suggest starting by looking at the differences between WiFiClient and WiFiClientSecure, and seeing how SSL support is added by the latter. Then see if that "SSL support" feature can be extracted out of WiFiClientSecure into a separate class template. This class template would then be used by both WiFiClientSecure and EthernetClientSecure. The constraints to consider are 1) compatibility with the older code, 2) maintainability of the final code (avoiding code duplication). |
@igrr, thank you for your reply. Your explanation of the process actually makes sense to me, considering that I don't yet understand what classes are. I have tried to learn them in php without success, even though I use them I have trouble creating my own. I am certainly willing to look into this, and now I have a starting point. I will start with a comparative check between WiFiClient & WiFiClientSecure. May I ask, if I need to ask questions about implementing this, are you able to provide guidance from time to time? |
Hi guys, Basically, I am able to add a certificate to a WINC1500 and get my WiFiSSLClient working. I would like to use the TLS support currently using the WiFiSSLClient internals to the RJ45 Ethernet board. Any advise / thoughts? |
This should come for free with #6680 . |
I'm beginning to experiment with the Ethernet support in the library, and I am curious if there is any way to leverage the SSL/TLS work that was done for WiFi over the Ethernet client connections?
Right now, there does not seem to be any support in the examples ... but can this be done?
The text was updated successfully, but these errors were encountered: