Vol. I · No. 46The protocol sectionSat, 10 Oct 2026
Layer 6 · Security · wraps the transport

TLS

Transport Layer Security

TLS is the envelope the web travels in. Before any data flows, client and server run a handshake to agree on keys and check the server’s certificate, and from then on every byte is encrypted, tamper-evident and bound to who they’re talking to — it is the S in HTTPS.

TLS turns a plain connection into a private, verified channel — agree on keys once, then encrypt everything after.

You can run this one

Open the HTTPS lab →

Send a password over port 80 and read it off the wire. Then send the same request over TLS 1.3: its content turns opaque while IPs, size, timing and sometimes the hostname remain visible.

Intermediate
Operates at
Layer 6
above TCP, below the app
Port
None of its own
443 with HTTP
Provides
Privacy + identity
encrypt & authenticate
Current
TLS 1.3
2018 · 1-RTT handshake

How it works

The handshake, then encrypted records
ClientServer
ClientHello
Supported versions: TLS 1.3
Cipher suites + client random
Key share (ephemeral public key)
ServerHello + Certificate
Chosen cipher + server key share
Certificate (signed by a CA)
Finished — switch to encrypted
Encrypted application data

Both sides mix their key shares into the same secret without ever sending it. The certificate proves the server is who it claims — then every record after is sealed.

The main points

What TLS does, step by step

1
Hello & negotiate

Over an open TCP connection, both sides agree a TLS version and cipher suite and trade random values.

2
Prove identity

The server sends a certificate chain; the client checks it against a trusted CA and the hostname.

3
Derive a shared key

An ephemeral (ECDHE) key exchange lets both compute the same secret — giving forward secrecy.

4
Encrypt everything

Application data flows as authenticated, encrypted records — sessions can resume to skip the full handshake.

In cybersecurity

TLS is the web’s baseline defence — but its security rests on the certificate chain being validated, and old versions and weak ciphers quietly undo the whole guarantee.

Certificate validation

Skip the chain, expiry or hostname check and an attacker’s certificate sails through unnoticed.

Downgrade attacks

A meddler forces the connection onto an old version or weak cipher it can break — disable them.

Forward secrecy

Ephemeral keys mean a stolen server key can’t decrypt yesterday’s recorded traffic.

Man-in-the-middle

Corporate proxies and attackers alike intercept TLS — certificate pinning narrows who’s trusted.

Expired & misissued certs

Lapsed or wrongly issued certificates break trust; automation (ACME) and CT logs keep them honest.

Encrypted ≠ safe

TLS hides traffic in transit — it says nothing about whether the server itself is malicious.

Rides in the stack

IPTCPTLSHTTP

Works with

SSLSSHTCPHTTP

See it on Linux

aptdnfresolvectlcurlwgettcpdump

Handshake & versions

Handshake
Hellonegotiate
Certidentity
Keyexchange
Finishedencrypt
Versions
1.3current
1.2common
1.1 / 1.0retired
SSL 3broken