The TLS/SSL handshake is the process by which a client and a server set up an encrypted connection. It authenticates the server, negotiates cryptographic parameters, and establishes shared keying material. Websites and security tools can fingerprint a client from the parameters it offers in this handshake, such as its TLS version, cipher suites, and extensions.

It runs after the TCP connection opens and before any HTTP data moves, every time a client connects to a site over HTTPS. "SSL handshake" is the older name: SSL 3.0 was deprecated in 2015, and TLS 1.0 and 1.1 followed in 2021. Today's connections use TLS 1.2 or TLS 1.3.

How the TLS 1.3 Handshake Works

  1. ClientHello: the client sends the TLS versions, cipher suites, and extensions it supports, plus a key share. This message goes out unencrypted.
  2. ServerHello: the server picks the version and cipher suite and returns its own key share. Both sides can now derive the handshake keys.
  3. Encrypted server messages: the server sends EncryptedExtensions, its Certificate, a CertificateVerify signature, and a Finished message. Everything after the ServerHello is encrypted.
  4. Client Finished: the client checks the certificate and sends its own Finished message. Application data, such as the HTTP request, can follow.

The full handshake takes one round trip. A client resuming an earlier session can also send 0-RTT data in its first message, but that data has no guarantee against replay between connections.

TLS 1.2 vs. TLS 1.3 Handshake

TLS 1.2TLS 1.3
Messages after ServerHelloNot encryptedEncrypted, including the server certificate
RSA key exchangeSupportedRemoved
0-RTT early dataNot availableAvailable on resumption, without replay protection
Current specificationRFC 5246, now obsoletedRFC 9846 (July 2026), which replaced RFC 8446

What the Handshake Reveals

  • The client's identity as software: the ClientHello lists versions, cipher suites, extensions, and their order. TLS fingerprinting methods such as JA3 build a fingerprint from the TLS version, cipher suites, extensions, elliptic curves, and elliptic curve point formats a client offers.
  • The site you're visiting: the Server Name Indication (SNI) extension in the ClientHello is sent in plaintext and names the target domain. Encrypted Client Hello (ECH), published as RFC 9849 in March 2026, encrypts the ClientHello to protect the SNI and fields such as the ALPN list, where both sides support it.

Through a Proxy, the Handshake Is Still Yours

For an HTTPS site, your client asks the proxy to open a tunnel with CONNECT, the way an HTTPS proxy works. Once the proxy answers with a 2xx status, it blindly forwards data in both directions. Your client then runs the TLS handshake directly with the website through that tunnel.

  • The site sees your ClientHello: the IP address is the proxy's, but the handshake parameters are your client's. IP rotation changes the address without changing the TLS fingerprint.
  • The proxy sees the SNI, not the content: a relaying proxy can read the plaintext SNI but can't read the encrypted traffic unless it terminates the handshake itself. The open-source Squid cache's SSL bumping option does this, decrypting HTTPS as a man in the middle.
  • Resumed sessions can link connections: a resumed session presents a ticket the server issued earlier. RFC 9846 notes that reusing tickets or key shares lets passive observers correlate connections.

What It Means for Web Scraping

  • Match the handshake to the claim: a client that says it is Chrome in its User-Agent but sends a ClientHello from a different TLS library gives two conflicting signals.
  • Reset state when you rotate: start fresh TLS sessions when you change IP, so a resumption ticket doesn't tie the old and new addresses together.
  • Expect the destination to be visible: without ECH, anyone on the path, including the proxy, can see which domain each connection is for.