Secure Channels - TLS and VPNs

Context: Information Security and Cryptography · two applied protocols that assemble the primitives into a secure channel · TLS = per-connection layer; VPN = network-level tunnel

Quick Revision

  • 🎯 Objective: combine DH + certificates + AES into a channel with confidentiality + integrity + authenticityTLS for a connection, VPN for a whole network path.
  • ⚡ Key Constraint: both only secure endpoint-to-endpoint — TLS protects a connection (often only the server is authenticated); a VPN leaves traffic in the clear beyond the tunnel endpoint.

🌐 TLS — Transport Layer Security

  • Placement ➔ a security layer between TCP and the applicationHTTPS = HTTP over TLS; also protects Mail and other protocols, not just HTTP.
  • History ➔ Netscape SSL → SSL 2.0 (1995) → SSL 3.0 (1996) → IETF TLS 1.0 (RFC 5246, 1999) → current TLS 1.3 (RFC 8446); all older versions should be disabled.
  • Goal ➔ establish a shared key for symmetric encryption (confidentiality + integrity/authenticity), using Diffie–Hellman for the secret.
  • Sub-protocols
    • Handshake ➔ negotiate parameters, optional authentication (HTTPS usually authenticates only the server), establish shared key → yields a session ID / session ticket.
    • Record ➔ the actual secure transport; after ChangeCipherSpec messages, all traffic is encrypted.
    • Alert ➔ immediately closes a session.

🔒 VPN — Virtual Private Networks

  • Definition ➔ logically connects a client (or network) to a remote network via an encrypted tunnel over the public Internet.
  • Properties ➔ device gets a different IP and is “logically” in the remote network; the VPN routes packets between networks; tunnel protocols: OpenVPN, WireGuard, IPSec (+ proprietary).
  • Why use one ➔ control access to a company network; circumvent local filters / geo-blocking; secure encryption + mutual authentication; protect the endpoint; reach internal-only resources.

⚠️ Common Mistakes

  • 💡 Tunnel ≠ end-to-end ➔ a VPN secures only between tunnel endpoints (client ↔ gateway); traffic behind the endpoint (inside the internal network) is still in clear.
  • 💡 TLS often authenticates one side ➔ in typical HTTPS only the server presents a certificate; the client is usually unauthenticated at the TLS layer.

🧠 Active Recall