Page 1 of 1

HTTPS PUT with resumption of TLS connection

Posted: Fri Oct 13, 2023 7:33 am
by Jonathan2892
Hi,

I have implemented an HTTPS PUT method, which will upload data up to 100k to aws-s3 using the esp_http_client.
I am using the same http client for multiple uploads. But every upload a new TLS/SSL connection is established, which needs a lot of time.

Is there a way to tell the http client to reuse the TLS/SSL connection like the resumption of TLS connection? Or a way to tell the http client which TLS/SSL session it should use?
Or is that not possible with the esp_http_client libraries and I must use the TLS/SSL libraries to implement that function?

Best
Jonathan

Re: HTTPS PUT with resumption of TLS connection

Posted: Fri Oct 20, 2023 4:31 am
by ESP_Mahavir
Hi Jonathan,

Please have a look at the client session ticket feature in the https_request example here: https://github.com/espressif/esp-idf/bl ... ojbuild#L3

Client session ticket is based on RFC5077 and should help for faster resumption of the TLS session.

Thanks.