2 Nov 2026
HTTPS procedure
https://www.youtube.com/shorts/lVWXZb_4tU8
TCP: make connection, HTTP: get from server, HTTPS: uses port 443. But more specifically...
browser will make the connection to the server (either through DNS lookup or browser caching)
To establish TCP
browser semds a syn message, server sends back syn and also sends an ack message, then browser sends back an ack message. This TCP 3-way handshake.
However
TCP itself doesnt encrypt the request itself. So you need TLS
To establish TLS
TLS sends message called client hello (sends supported encrytion methods and key info).
Google replies with key info and certificates (which it has to verify). This info is enough for them to decide which keys they should use. This is called the TLS handshake.
Following The Request
After this the browser creates a HTTP req, then applies TLS on it to encrypt it. Then applies TCP to divide the bytes and assigns sequence numbers to each. IP applies the source and destination, then the packet is sent out.
Server applies the inverse transformations.