arduino-libraries / ArduinoHttpClient

Arduino HTTP Client library
288 stars 172 forks source link

SNI Not supported #74

Closed darkyen closed 5 years ago

darkyen commented 5 years ago

It seems that this library fails where SNI is needed even though the underlying network driver does support it, perhaps we can create a sub-class ArduinoHTTPSClient that tries to use SNI by default?

The client I am using is WiFiNINA

sandeepmistry commented 5 years ago

Hi @darkyen,

Support for SNI was enabled in NINA f/w version 1.2.3 or later (here's the code change: https://github.com/arduino/nina-fw/pull/16).

The firmware version is not available in the stable release of the IDE as of now. However, if you download the nightly IDE version, you can use the WiFi Firmware updater tool to update to a firmware version that includes the change.

Please let me know if you have any further questions.

salexander2 commented 4 years ago

Hi, it seems I have the same problem. I can't connect via SSL even if I use latest versions of all (Arduino IDE, WiFiNINA firmware, WiFiNINA library). I have an Arduino UNO WiFi Rev 2. If I use the WiFiSSLClient example to connect to www.google.com it works, but if I use the same example to connect to my site (hosted by ARUBA.it) it doesn't work. Obviously I upgraded certificate for both sites (google ad mine). Any idea?