tls

tls

innocentzero

2026-06-08

#networks #protocol | Status: Complete

A bit on the transport layer security. I wrote these for a course so not the best notes on the topic.

tls

| handshake | cipher change | alert | heartbeat | HTTP/SMTP/FTP (aka the protocol) |
|                           TLS Record protocol                                    |
|                                  TCP                                             |
|                                   IP                                             |

TLS handshake protocol

The handshake protocol is very basic:

TLS record protocol

The record uses the parameters established previously.

TLS Session parameters

Some of the parameters are:

TLS Connection parameters

TLS handshake phases

Phase 1: Establish security capabilities in TLS handshake

Client Hello:

Server Hello:

Phase 2: Server Messages

Phase 3: Client Messages

Phase 4: Client and Server

TLS crypto computations

TLS Alert Protocol

Contains two bytes: first byte indicates fatal or severe, second indicates the code of the specific alert

TLS packet structure

Take the packet

Header fields include 1 byte content type (alert et al), 1 byte major version, 1 byte minor version, and 2 bytes compressed length.