TLS Handshakes: How a Protected Conversation Begins
Transport Layer Security, or TLS, protects communication between applications. It combines identity checks, encryption to conceal content and checks against unauthorized changes. Before the protected conversation can proceed, the two ends have work to do together.
That opening work is the handshake. A browser acts as the client, requesting a service; the website's software acts as the server, providing it. On a website whose address begins with https://, web communication uses TLS protection.
A typical certificate-based TLS 1.3 handshake shows how the pieces fit.
What Your Browser Does Before Sending a Secret
Agree on settings and establish secrets
The client begins by telling the server which relevant security options it supports. The server selects compatible settings. The opening messages also carry information used to establish shared secret values.
A key is a data value used in a mathematical security operation. The handshake lets the two sides derive the keys they need for the protected exchange. This is different from sending an account password to the website.
The TLS 1.3 specification separates key exchange, authentication and the later carriage of protected data. Each part does a different job.
Check who holds the other end
In the certificate-based example, the server presents a digital certificate: a signed electronic record linking an identity to a public key. A public key is a shareable mathematical value paired with a secret private key.
The server supplies a digital signature: proof calculated with its private key that the client can check with the public key. The client checks the certificate and the proof as part of establishing who it is communicating with. Merely receiving a certificate file wouldn't establish that the sender holds that secret.
The certificate's role is therefore about identity. It isn't a container that encrypts every subsequent message. The connection's traffic keys do that work.
TLS can also authenticate a client with a certificate, but client-certificate authentication is optional. A website may instead ask you to sign in to an account after the TLS connection is established. That account check occurs inside the protected communication; it is not the same as the server proving its identity during the handshake.
- Understand what AES, RSA and hashing actually do before you rely on them.
- Learn to spot the mistakes that break real-world encryption.
- Get a practical introduction to modern encryption in one book.
Carry the data in protected records
TLS organizes the data it carries into records, units protected with the connection's agreed keys. Encryption makes their contents unreadable without the appropriate secrets. Integrity checks allow the receiver to detect unauthorized changes to protected data.
The receiving application must recover the readable contents to use them. The protection covers the connection between its endpoints; it doesn't repair a compromised endpoint or establish that the receiving business will handle the information responsibly.
Version choices matter as well. The Internet Engineering Task Force's 2022 deployment recommendations prohibit negotiating SSL, TLS's predecessor, and TLS 1.0 or 1.1. They call for TLS 1.2 support and recommend supporting and preferring TLS 1.3.
Two programs can agree on a setting and still agree on an unsuitable one. A successful handshake needs to be judged by the protocol, identity checks and configuration actually used.
Digital Certificates: What Your Browser Can Actually Verify

Diffie–Hellman Key Exchange, With Numbers You Can Follow

Perfect Forward Secrecy: Protecting Yesterday’s Traffic

QUOTE:
"Amateurs hack systems, professionals hack people."
