HTTPS PUT with resumption of TLS connection

Jonathan2892
Posts: 45
Joined: Tue Dec 07, 2021 4:04 pm

HTTPS PUT with resumption of TLS connection

Postby Jonathan2892 » Fri Oct 13, 2023 7:33 am

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

ESP_Mahavir
Posts: 190
Joined: Wed Jan 24, 2018 6:51 am

Re: HTTPS PUT with resumption of TLS connection

Postby ESP_Mahavir » Fri Oct 20, 2023 4:31 am

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.

Who is online

Users browsing this forum: rsimpsonbusa and 81 guests