arduino / ArduinoCore-renesas

MIT License
109 stars 74 forks source link

Support the Mutual TLS Authentication on WiFiS3 library #265

Open ArduinoGetStarted opened 7 months ago

ArduinoGetStarted commented 7 months ago

Do you have a plan to support the mutual TLS authentication on the WiFiS3 library ?

This feature is available on ESP32 now. The Uno R4 uses the ESP32 as Wi-Fi module, So I think it does not need to develop the from scratch.

Additional context

Additional requests

pennam commented 7 months ago

Hi @ArduinoGetStarted, If I am correct this should be a matter of adding two new AT commands for this APIs

setCertificate(const char *client_ca);
setPrivateKey (const char *private_key);
ArduinoGetStarted commented 7 months ago

Dear @pennam ,

I think you are correct. The WiFiClientSecure library from ESP32 has those function. I tested, it works well with AWS IoT. The link for the tutorial is here: how to connect ESP32 to AWS IoT. I hope this feature will be available on Arduino Uno R4 soon! Uno form factor is compatible with many shields

bayu01 commented 6 months ago

Being new to the Arduino development I naively thought the Uno R4 Wifi would have the latest and greatest functionality. I stumbled into this issue trying to follow the most basic AWS IoT Core documentation.

Is there no current workarounds?

ArduinoGetStarted commented 6 months ago

Dear @bayu01 I think the Uno R4 WiFi is not mature. It is new released. It will be a good choice for every application for several years later. For now, you can use Arduino Nano ESP3. You can see the tutorial for Arduino Nano ESP32 connects to AWS IoT