What is a TLS/SSL handshake?

Let's take a minute to understand what the Transport Layer Security (TLS)/Secure Sockets Layer (SSL) is before actually diving into what the heck a handshake is. 

First of all, we should note that TLS is just an upgraded, and more modern, version of SSL. So, what's SSL?

SSL is a standard within security protocols for setting up an encrypted and secure tunnel between your computer and the remote server. It prevents somebody who is eavesdropping on your internet connection, say your Internet Service Provider (ISP), from stealing data that is transferred over the network.

On every major site these days, you will see a green lock to the left of the URL inside the browser. That is a symbol of security, and it means ...

Get Learn ECMAScript - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.