I have an ESP32 and want to connect it to the WLAN at my office. Based on my current knowledge of the Arduino, we use the
WiFiClass to connect to a WLAN and then use a
WiFiClient to use the WiFi for data transfer.
In order to connect to the WLAN at my office, a certificate is needed. I have asked the network guys to issue a x.509 certificate and plan to use the
The problem is that my
WiFi.begin(ssid) method never leaves the following
Wifi.begin(ssid); // my office needs a certificate to connect to the wifi at the first place
while (WiFi.status() != WL_CONNECTED)
Note that to connect to my office network, no password is needed. The x.509 certificate is enough for the connection to establish.
Only after a WiFi connection is established, I can set the
WiFiSecureClient parameters of the CA. But to connect to the WiFi, I need the certificate.
This is very confusing. Could someone please clarify a way our for me in this situation.