How HTTPS works
HTTPS is HTTP inside a TLS tunnel. After the TCP handshake, client and server agree on keys and the server proves its identity with a certificate; from then on nobody in between can read or change the traffic.
Layer: Application (OSI layer 7) · Port: 443 · Transport: TCP + TLS · Format: HTTP inside TLS records · Standard: RFC 2818, RFC 8446
HTTPS packet flow
- TCP Client → Web Server: 52400 → 443 [SYN]
- TCP Web Server → Client: [SYN, ACK]
- TLS Client → Web Server: Client Hello (SNI www.example.com, key share)
- TLS Web Server → Client: Server Hello, Certificate, Finished
- TLS Client → Web Server: Finished + Application Data (GET /)
- TLS Web Server → Client: Application Data (200 OK, encrypted)
Other protocols: SSH · TLS/SSL · DNSSEC · DNS over HTTPS · Wi-Fi · WPA3 · RADIUS · Captive Portal · HTTP Proxy · SOCKS5 · Reverse Proxy · WireGuard · IPsec