-
Notifications
You must be signed in to change notification settings - Fork 22
Ethernet with SSL #17
Comments
Sorry I don't have MKR WiFi1010 + MKR ETH to test and help. Moreover, please post the complete code ( such as server, etc.) so that anybody with the same hardware can help. Currently, wss (SSL) is supporting only ESP8266 (check WebSocketClientSSL.ino#L6 and esp32 with ssl don't work #705 ). So it's even requiring a lot of work to rewrite the library to add support to normal SSL also requires a lot more knowledge and board's resource / capability and you have to be careful before make it a must for your design. Something we can do easily using PC / Laptop can't be expected to fulfill easily in this embedded world. Your request is so abnormal and I'm sorry I can't spend time here, unless there are many many more requests in the future so that I can reopen the issue. |
Our customers (Retail stores) do not have reliable WiFi but they have reliable Router-Switches installed. Therefore I need a working example of SSL-Ethernet and Socket.IO. I cannot show the server-code since it is prohibited by the customer. What I don't undersrand: With SSL-WiFi I have it working (ie. using the "certificate download" with the help of the Arduino IDE Tool, and running your WiFi-Socket.IO example. And with "I have it working", I mean: it works on MKRWiFi1010, RP2040 Connect as well as a Adafruit Feather M0 boards !!! Why can't your library work with the same SSL-certificate mecano for Ethernet as it does for WiFiNINA examples? At least, your Websocket_generic-->Generic examples also contain SocketIO-Ethernet examples. However it is very intransparent whether there is a chance to get it to run with SSL-Ethernet. Aren't there any Ethernet-Shield examples that should work just the same way as WiFI-examples ? All I need is to drive the Socket.IO Example via Ethernet connected to the internet instead of WiFi. |
You wrote "Your request is so abnormal". Just my question: How do you connect to the Internet securely then ? I always thought that a LAN connection should be SSL in order to securely access the Internet. How do you connect your Socket.IO implementation to the outer world in a secure fasion ? Since your Socket.IO Ethernet example does not work with SSL, how do you make it secure then ? Thank you for answering. |
I think you're selecting the wrong board to start. I suggest that you now use the I'll publish a new release v2.12.0 to support this SSL feature for This is the test example based on yours
Terminal output
Many of my libraries are supporting Try to be familiar with them before moving forward. |
Hi @iKK001 The new WebSockets_Generic releases v12.12.0 has just been published. Your insistence, leading to this new release, is noted in Contributions and Thanks Best Regards and Good Luck, Major Release v2.12.0
|
Dear @khoih-prog, thank you very much. I appreciate your work. As for the M0 Cortex based Baords: Could't you use the same mechano as used in Examples-->EthernetWebServer_SSL-->WebClient_SSL ? (i.e. with a trust_anchor). All it would take is to replace the WebSocket-client (or SocketIO-client) by this sslClient. Or is this too much of a dream ? |
hi, is this working now with mkr1010? |
nope - not that I know |
What a pity. I like Khoihs libraries. I can connect with "socketIO.begin(..)." but with "socketIO.beginSSL(...)" it doesn´t work with my MKR1010. I got just this message: [WS] WebSockets_Generic v2.12.0 in this case i can´t use it. SSL is required. If some found a way to work with this and MKR1010 please share. |
is it planned to make it work for MKR1010? |
one more question. the server don´t parse special characters (+,&...) in password. How can I work with it? |
I am trying to connect to a Socket.IO server with Ethernet and SSL.
The Board: MKR WiFi1010
The Ethernet Shield: MKR ETH stacked on top of the MKR WiFi1010
I was thinking of using the EthernetWebServer_SSL library.
However, I do not see a way on how to achieve the connection with the SocketIO client.
Obviously, in my code there is no SSL connection yet. And therefore the connection does not work as can be seen in the following log:
Below is my entire code. The SSL-certifcate is placed in the
trust_anchors.h
file as described in the EthernetWebServer_SSL library.Questions:
How do I link the
sslClient
to thesocketIO
client correctly ? Or is this the wrong way at all ?How would I achieve SSL and Ethernet with the WebSocket_Generic's Socket.IO library ?
Is the call to
socketIO.beginSSL(server, serverPort);
automatically doing SSL ? Or is there something missing ? How do I achieve SSL with Socket.IO ?Thanks.
The text was updated successfully, but these errors were encountered: