Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When does HTTPS handshake take place?

Tags:

https

I understand from various sources that the HTTPS handshake is the heaviest part of using HTTPS. I'm using POSTs internally between my servers to communicate information and would like to use HTTPS for it. I wondered how long the actual HTTPS handshake lasts/"stays open"? Is it re-done for each POST I'm sending to a server, or what is the lifetime?

like image 795
Alex Avatar asked Sep 29 '09 20:09

Alex


People also ask

How does https handshake happen?

A TLS handshake takes place whenever a user navigates to a website over HTTPS and the browser first begins to query the website's origin server. A TLS handshake also happens whenever any other communications use HTTPS, including API calls and DNS over HTTPS queries.

Does SSL handshake happen for every request?

net. debug=ssl and found that handshaking is started for every https request again.

What is SSL handshake time?

The SSL handshake is the process in which a client and server establish the encryption algorithms and secret keys they will use to communicate with each other securely, and exchange and validate each other's digital certificates.

Where does TLS handshake happen?

When you visit a website via HTTPS, TLS handshake happens between your browser and the web server, so your browser can communicate with the web server via a secure connection. There are two common versions of TLS handshakes: TLS 1.2 and TLS 1.3. TLS 1.3 was published in 2018 by IETF as RFC 8446.


2 Answers

The SSL handshake is only done at the beginning of a session and is mainly about generating a shared session key that is used to encrypt all later traffic.

You can find a very good description of the handshake here.

like image 72
raymi Avatar answered Oct 13 '22 09:10

raymi


I believe the handshake occurs on connection (ie, as part of the SSL negotiation). It you use HTTP keep-alive connections then the handshake only occurs once as long as the connection is active.

like image 22
developmentalinsanity Avatar answered Oct 13 '22 10:10

developmentalinsanity