Seeed_Arduino_rpcWiFi icon indicating copy to clipboard operation
Seeed_Arduino_rpcWiFi copied to clipboard

Multiple TLS/HTTPS connection not supported?

Open kartben opened this issue 4 years ago • 7 comments

I am having issues getting the WifiClientSecure + HTTPClient to work when I already have a TLS connection established

What works:

  • Application is connected to Azure IoT Hub using MQTT over TLS, and I can correctly perform a GET of an HTTP resource using HttpClient

What does not work:

  • Application is connected to Azure IoT Hub using MQTT over TLS, and I cannot correctly perform a GET of an HTTPS resource using HttpClient.

It doesn't matter if I try to set the CA cert on the Client, or to pass it to the begin() method of the HTTP client, the app hangs when doing the .GET() call. It also doesn't work if I try to issue an HTTPS GET query on the exact same server that I am already connected to using MQTTS, even if the CA Cert would be the same in that case.

I have confirmed that doing the HTTPS query in an app where it is the only TLS connection being made works just fine (BasicHttpsClient.ino sample)

kartben avatar Apr 20 '21 17:04 kartben