ClickCease
What Is Transport Layer Security (TLS) Your Guide To Web Safety

What Is Transport Layer Security (TLS)? Your Guide To Web Safety

Ever noticed that little padlock symbol next to a website’s address in your browser? Or how some web addresses start with “https” instead of just “http”? That, my friend, is your first clue that you’re looking at a secure connection. But what makes it secure? 

The answer is a nifty piece of internet magic called Transport Layer Security (TLS). It’s like a secret handshake between your web browser and the website you’re visiting, making sure no one can eavesdrop on your conversation. 

Let’s get into what Transport Layer Security (TLS) is and why it matters to you every single day.

So, What Exactly Is TLS

At its heart, TLS or Transport Layer Security is a cryptographic protocol designed to provide secure communication over a computer network. Think of it as an invisible, armoured tunnel for your data. When you send sensitive information online, like your credit card details for a spot of online shopping or your Singpass login, TLS wraps it in a protective layer. 

This stops pesky hackers and cybercriminals from intercepting and reading your private information. It’s the standard for keeping your internet connection secure and protecting any sensitive data being sent between two systems.

How Does Transport Layer Security TLS Keep You Safe?

How Does Transport Layer Security TLS Keep You Safe

The magic of Transport Layer Security (TLS) boils down to three main jobs:

  • Encryption: This is the process of scrambling your data into an unreadable code. Imagine writing a letter in a secret code that only you and the recipient have the key to decipher. That’s what encryption does. Even if a cybercriminal manages to snatch your data, all they’ll see is a jumble of nonsensical characters without the correct key.
  • Authentication: TLS makes sure you’re talking to the real deal. When you connect to your online banking website, for instance, TLS verifies the website’s digital certificate (its online ID card, if you will) to confirm it’s genuinely your bank and not a clever fake set up by scammers.
  • Integrity: It ensures that the data you send hasn’t been tampered with along the way. TLS creates a digital signature for the data. If even a single character is altered in transit, the signature won’t match on the other end, and the connection will flag the data as corrupted or compromised.

A Quick Look at the TLS (Transport Layer Security) Handshake

A Quick Look at the TLS (Transport Layer Security) Handshake

The process of starting a secure session with TLS (Transport Layer Security) is often called the “TLS handshake.” It’s a quick back-and-forth chat between your browser and the website’s server that happens in milliseconds, right after you type in a web address and hit Enter.

1. The ‘Client Hello’: Your browser kicks things off by sending a Client Hello message to the website’s server. This message essentially says: “Hi there! I’d like to start a secure connection. Here’s the version of TLS I can use, and here are the encryption methods (known as cipher suites) I know.”

2. The ‘Server Hello’ and Certificate: The server receives this message and responds with a Server Hello. This reply says: “Hello back! I’ve checked your list, and let’s use this specific TLS version and this specific cipher suite.” Crucially, the server also sends its TLS certificate. 

    This certificate is like the server’s official ID card or passport. It contains vital information, including the website’s domain name, the organisation that owns it, and a public key. This certificate has been digitally signed by a trusted third party, a Certificate Authority (CA), which vouches for the server’s identity.

    3. The Browser Verifies the Certificate: This is the trust-building step. Your browser examines the certificate to make sure it’s legitimate. It checks:

    • If it trusts the Certificate Authority that issued the certificate. Browsers have a built-in list of trusted CAs.
    • If the certificate has not expired.
    • If the domain name on the certificate matches the website you’re actually on. This prevents ‘man-in-the-middle’ attacks where an attacker might try to impersonate the website.

    4. Creating the Secret Keys (The Key Exchange): Once your browser trusts the server, it needs to secretly create a key to encrypt its conversation. They can’t just send this key openly, as an eavesdropper could grab it. So, they perform a clever cryptographic exchange.

      • Your browser creates a secret key called a premaster secret.
      • It then encrypts this secret using the server’s public key (which it got from the certificate).
      • The browser sends this encrypted secret to the server. Because of how public-key cryptography works, this encrypted message can only be decrypted by the server using its corresponding private key, which it keeps completely secret. So, even if someone intercepts this message, they can’t unlock it.

      5. Secure Channel Established Now, both your browser and the server have the same secret (the premaster secret). They each independently use this secret to generate a unique set of matching encryption keys called session keys. These keys are symmetric, meaning the same key is used to both encrypt and decrypt information. They will be used for this session only and discarded afterwards.

      6. The ‘Finished’ Messages To confirm everything went smoothly, both your browser and the server send a final “Finished” message to each other. This message is the very first thing to be encrypted with the newly created session keys. If both sides can successfully decrypt the other’s message, it proves the handshake was successful and the secure channel is ready.

        Conclusion About Transport Layer Security

        To sum it up, TLS is the unsung hero of our daily online lives. It works quietly in the background, securing our connections, protecting our privacy, and making the internet a safer place for us to shop, bank, and browse. So next time you see that padlock, you’ll know exactly what’s keeping you safe. 

        To ensure your website is properly secured and optimised, get your website checked with our free SEO Audit from Best SEO.

        Talk to us today!

        Frequently Asked Questions About Transport Layer Security

        What Is The Difference Between TLS And SSL?

        SSL (Secure Sockets Layer) was the original predecessor to TLS. TLS is a more modern and secure version of the protocol. Although people often use the terms interchangeably, SSL is no longer commonly used due to its known vulnerabilities. Modern secure connections all use TLS.

        How Do I Know If A Website Is Using TLS?

        It’s easy! Look at the website address in your browser’s navigation bar. If it starts with “https://” and you see a padlock icon next to it, the website is using a secure connection powered by TLS.

        Is TLS Only For Websites?

        No, not at all. While it’s most commonly associated with web browsing, TLS is also used to secure other internet communications, including email (protocols like IMAP and SMTP), messaging apps, and VoIP (Voice over Internet Protocol) services.

        Can A Website With TLS Still Be Unsafe?

        Yes, it’s possible. TLS secures the connection between you and the website, preventing data from being intercepted in transit. However, it doesn’t protect the website itself from being hacked or from having malicious software on it. Always be cautious.

        Picture of Jim Ng
        Jim Ng

        Jim geeks out on marketing strategies and the psychology behind marketing. That led him to launch his own digital marketing agency, Best SEO Singapore. To date, he has helped more than 100 companies with their digital marketing and SEO. He mainly specializes in SMEs, although from time to time the digital marketing agency does serve large enterprises like Nanyang Technological University.

        Read More

        Share this post