Back to Blog

Protocols (5) : TLS

YS
Yunus Saygınlı
March 28, 2026
10 min read
Protocols (5) : TLS

What is TLS (Transport Layer Security)? The Invisible Armor of the Internet

Greetings! Today we're examining perhaps one of the most critical, yet least discussed, heroes of the web world: TLS.

This protocol is precisely what prevents malicious individuals from accessing your credit card information, logging in with your password, or sending a private message online. Previously, SSL did this job, but now TLS, which is much more secure and faster, has taken over.

Let's look together at how this "secure tunnel" is established and why it's so important.


1. What Exactly is TLS?

TLS (Transport Layer Security) is a security protocol designed to encrypt communication between two computers (usually a web browser and a server).

Its main purpose is to provide three main elements:

  • Privacy (Encryption): It encrypts data to prevent third parties from reading it.
  • Authentication: Ensures that the person you are communicating with is indeed that person (or server).
  • Integrity: Guarantees that the data has not been altered or corrupted during transit.

2. How TLS Works? (The Famous Handshake)

When you access a website, a "handshake" process takes place in the background within milliseconds. Let's examine this process step by step:

  1. Client Hello: Your browser says to the server, "Hello, I want to establish a secure connection with you. Here are the encryption methods I support!"
  2. Server Hello: The server responds: "Hello! Okay, let's use this encryption method. Here is my digital certificate and public key."
  3. Verification: Your browser checks the certificate sent by the server. If the certificate is signed by a trusted authority, the process continues. 4. Key Exchange: The browser generates a random "secret key" and sends it to the server, encrypting it with the server's public key. Only the server can decrypt this key.
  4. Secure Channel: Now both parties share a secret key. All subsequent data traffic is encrypted with this key.

tls2.avif


3. What is the Difference Between SSL and TLS?

Many people still use the term "SSL certificate," but what we actually use is almost always TLS.

  • SSL (Secure Sockets Layer): This is the first version developed by Netscape in the 90s. It has now been retired due to security vulnerabilities. * TLS: It is the successor to SSL. It uses stronger algorithms and is much faster. The current standard is TLS 1.3.

4. TLS 1.3: Speed ​​and Security Combined

In older TLS versions (1.2 and earlier), the handshake process required several round trips. With TLS 1.3, this process has been reduced to a single step. This means websites load much faster and have less latency. Furthermore, older and weaker encryption methods have been completely eliminated with this version.


5. Why Should We Use TLS?

  • Security: Protecting user data is not a luxury, it's a necessity.
  • SEO Advantage: Google ranks sites using HTTPS (i.e., sites using TLS) higher in search results. * User Trust: No one wants to spend time on a site that displays a "Not Secure" warning.
  • Legal Obligation: Data protection laws such as the KVKK or GDPR consider the use of TLS a standard.

Conclusion

TLS is like an invisible shield, creating a secure tunnel for our data in the chaotic environment of the internet. As a developer, instead of simply installing a certificate and moving on, understanding the mathematical handshake and speed optimizations behind this protocol helps us build more robust systems.

Bu Yazıyı Beğendiniz Mi?

Yazara destek olmak için karta dokunun

Comments

0