Skip to main content
  1. Posts/

How HTTPS Works: It's Not Just Encryption

··256 words·2 mins·

🔐 Your browser doesn’t just “encrypt with the server’s key” — what actually happens is far more interesting

HTTPS/TLS solves three problems, not just one:

🔒 1. Confidentiality — no one in the middle can read the data ✅ 2. Authentication — you’re talking to who you think you are 🔄 3. Integrity — the data wasn’t tampered with in transit

🤝 The TLS handshake step by step:

  • Client says “hello” and lists supported algorithms
  • Server picks one and sends its certificate (signed by a CA)
  • A shared session key is generated via asymmetric cryptography
  • The whole session is encrypted with that symmetric key (much faster)

📜 What’s inside a certificate? Domain name, public key, validity period, and the digital signature of a trusted CA.

⚠️ Why do self-signed certificates trigger errors? Because no recognized CA vouches for the identity. Anyone can create one — there’s no chain of trust.

💡 Explanation in a nutshell
#

HTTPS is like sending a letter in a sealed envelope, but first verifying that the post office is legitimate. TLS uses two types of encryption: a slow one (asymmetric) to agree on a secret key, and a fast one (symmetric) for the rest of the conversation. Certificates are like the server’s ID card, validated by trusted authorities.

More information at the link 👇

Also published on LinkedIn.
Juan Pedro Bretti Mandarano
Author
Juan Pedro Bretti Mandarano