ESP32 connection with authentication delay

Posts: 1
Joined: Thu Sep 05, 2019 11:41 am

ESP32 connection with authentication delay

Postby Julio_Fuertes » Thu Sep 05, 2019 1:52 pm


We are in the way of optimize communication with a device which has a ESP32 Wifi inside and we are using this ESP32 Wifi as a SSL Server.
The request go on C# using SslStream library vía socket. The issue appear when we try to athenticate our access when the connection to SSL Server (the device with ESP32 inside) has been stablished.
  1. /* Creating the socket */
  2. sslstream = new SslStream(cliente.GetStream(), false, ServicePointManager.ServerCertificateValidationCallback);
  3. /* Here is the authentication with server where we have the issue */
  4. sslStream.AuthenticateAsClient("{Nombre Host}");
But although the rest of code is being processing and the request go on and it's being received by the Server ESP32, there is about 6 sg delay between this Method (AthenticateAsClient()) execution and reception of the certificate delivered by the ESP32 (the native certificate inside).

How can we decrease this lapse of time?, Is this a certificate matter?, Is a ESP32 hardware issue?

Thanks in advance

Who is online

Users browsing this forum: No registered users and 17 guests