TLS encryption explained: Learn how the TLS 1.3 handshake, certificates, and symmetric encryption protect HTTPS traffic, and where that protection stops.
👉 Master your Security+ skills with Pluralsight here: Pluralsight
You’ll learn how TLS encryption works, from the TLS 1.3 handshake and digital certificates to symmetric encryption that protects HTTPS traffic. Build your CompTIA Security+ foundation while understanding how secure connections protect your data, and why they don’t guarantee a website is safe.
Chapters: 0:00 Intro 0:12 What does TLS actually protect? 0:58 How does the TLS 1.3 handshake establish keys? 2:03 How do TLS certificates prove a server’s identity? 3:11 How does TLS encrypt your data after the handshake? 3:49 What doesn’t TLS protect you from? 4:32 Outro
Affiliate notice: Some links may earn a commission. Thanks for your support.
Key Takeaways
TLS protects data in transit through confidentiality, integrity, and authentication. HTTPS is HTTP protected by TLS; SSL is TLS’s obsolete predecessor.
Certificates authenticate, key agreement establishes secrets, and symmetric encryption protects traffic. In a typical TLS 1.3 handshake, ephemeral Diffie–Hellman derives a shared secret without transmitting it.
Certificate validation checks identity, not honesty. Browsers verify the requested hostname, validity period, and chain to a trusted authority. Do not bypass certificate warnings.
TLS 1.3 uses authenticated encryption, such as AES-GCM or ChaCha20-Poly1305, to keep application data confidential and detect tampering.
Ephemeral key agreement provides forward secrecy: later theft of the server’s authentication private key alone cannot decrypt recorded sessions, provided temporary secrets were properly discarded.
Prefer TLS 1.3 where available. Properly configured TLS 1.2 remains supported by IETF guidance; SSL and TLS 1.0/1.1 should not be negotiated.
HTTPS does not guarantee a safe website or secure endpoints. Phishing sites can use valid certificates, TLS-terminating intermediaries can access plaintext, and network observers can still see some metadata.
👉 Turn TLS knowledge into hands-on skills with Pluralsight, an optional next step offering guided security labs, feedback, assessments, and certification practice.
TLS encryption protects data as it travels between your device and a service, such as a website. It combines identity verification, shared-secret establishment, and symmetric encryption to make network traffic difficult to read or alter without detection.
The important distinction is that TLS protects a connection, not the honesty of the website at the other end. Understanding how the TLS 1.3 handshake and certificates work helps explain both why HTTPS is valuable and where its protection stops.
TLS Encryption Explained: What Does It Protect?
Transport Layer Security (TLS) creates a protected communication channel between endpoints. For web browsing, those endpoints are usually your browser and a website’s server or a service handling connections on its behalf.
Someone monitoring your network cannot read a password inside a properly protected HTTPS request.
Integrity
Unauthorized changes to protected traffic are detected.
An attacker cannot silently change an encrypted request into a different valid request.
Authentication
A participant can verify the identity of its peer under the connection’s trust model.
Your browser checks that the server is authenticated for the domain you requested.
These protections depend on correct implementation, configuration, and certificate verification. Simply using an encryption algorithm is not enough.
TLS vs. SSL vs. HTTPS
These terms are related, but they are not interchangeable:
TLS is the protocol that protects the connection.
SSL, or Secure Sockets Layer, is TLS’s obsolete predecessor. The phrase “SSL certificate” remains common, even when the connection uses modern TLS.
HTTPS is HTTP communication protected by TLS.
For conventional HTTP/1.1 or HTTP/2 connections, the simplified relationship is:
HTTP → TLS → TCP → IP
HTTP/3 works differently: it uses QUIC over UDP. QUIC incorporates the TLS 1.3 handshake and derives protection secrets from it, but handles packet protection itself.
Why TLS Uses Both Asymmetric and Symmetric Cryptography
TLS has to solve two different problems:
Establish who is participating and create shared secrets over an observable network.
Protect the application’s ongoing traffic efficiently.
Different cryptographic tools handle these jobs.
Public-key cryptography supports authentication and key agreement. A server can prove possession of a private signing key, while an ephemeral key-agreement mechanism lets both endpoints derive a shared secret.
Symmetric cryptography then protects the application data using shared secret keys. TLS 1.3 uses authenticated-encryption algorithms such as AES-GCM or ChaCha20-Poly1305.
A useful mental model is:
Certificates help establish identity, key agreement establishes shared secrets, and symmetric authenticated encryption protects the conversation.
The certificate’s public key does not encrypt every web request, and the server does not send its private key to your browser.
How the TLS 1.3 Handshake Works
The following describes a typical full, certificate-authenticated TLS 1.3 handshake using ephemeral Diffie–Hellman key agreement. Resumed sessions and other supported variations can differ.
1. The Browser Sends a ClientHello
Your browser begins with a ClientHello message. It offers information such as:
Supported TLS versions.
Supported cipher suites.
Supported key-agreement groups.
Supported signature algorithms.
A temporary public key share.
This message tells the server which security options the browser can use.
2. The Server Replies With a ServerHello
The server selects compatible settings and sends a ServerHello, including its own public key share.
With a compatible key share from each side, the browser and server can independently calculate the same shared secret.
This commonly uses ECDHE: Elliptic Curve Diffie–Hellman Ephemeral.
Conceptually:
Each endpoint creates a temporary private value.
Each calculates a corresponding public key share.
They exchange the public shares.
Each combines its private value with the other endpoint’s public share.
Both arrive at the same shared secret.
The shared secret itself never crosses the network. An observer can see the exchanged public shares but does not obtain the private values needed to perform the same calculation.
However, key agreement alone does not prove who is participating. Without authentication, a client could establish secrets with an attacker instead of the intended server.
3. Both Sides Derive Handshake Keys
TLS does not simply reuse the shared secret unchanged as one universal encryption key.
Instead, a key derivation function called HKDF turns the secret material into purpose-specific secrets and keys. This separation supports different stages of the connection and different traffic directions.
After ServerHello, most remaining handshake messages are encrypted using derived handshake-protection keys. The initial ClientHello and ServerHello are not ordinarily confidential.
4. The Server Authenticates Itself
The server sends protected handshake messages that include:
Message
Purpose
EncryptedExtensions
Communicates additional negotiated parameters.
Certificate
Presents the server’s certificate chain.
CertificateVerify
Signs handshake information to prove possession of the certificate-associated private key.
Finished
Confirms the handshake using the derived secrets and handshake transcript.
The certificate presents the server’s identity binding. The signature proves that the server holds the corresponding private key.
These are related but distinct checks: presenting a certificate alone is not proof of private-key possession.
5. The Browser Verifies the Server and Finishes the Handshake
The browser validates the certificate and requested service identity, verifies the server’s signature, and checks its Finished message. It then sends its own Finished message.
In ordinary HTTPS, certificate authentication is usually one-way: the browser authenticates the server. With mutual TLS, or mTLS, the client also authenticates using a certificate.
Once the handshake completes, the endpoints use application traffic keys to protect their conversation. Client-to-server and server-to-client traffic use separate keys.
TLS 1.3 does not use the older model in which the browser creates a session key and encrypts it with the server’s RSA public key. In this handshake, ephemeral key agreement establishes shared secrets; the certificate-associated key authenticates the server.
How TLS Certificates Verify a Website’s Identity
A digital certificate binds a public key to identifying information, such as a domain name. It also contains information including its issuer, validity period, and permitted uses.
A certificate contains a public key, not the owner’s private key.
The Certificate Chain of Trust
A common certificate chain looks like this:
Trusted root CA → Intermediate CA → Server certificate
A certificate authority (CA) signs certificates. Your browser validates a path from the server’s certificate through the relevant issuers to a trust anchor it already accepts.
That starting trust usually comes from the browser’s or operating system’s trust store. A root certificate is not trustworthy merely because it signs itself.
Together, certificate authorities, certificates, trust stores, and supporting policies form part of public key infrastructure (PKI).
What the Browser Checks
Certificate verification includes checking that:
The certificate identifies the requested service.
The certificate is within its validity period.
The chain leads to an accepted trust anchor.
The signatures and algorithms are acceptable.
The certificate’s constraints and permitted uses allow the intended purpose.
For domain-name matching, the relevant certificate field is the Subject Alternative Name (SAN).
This is why a valid certificate for a lookalike domain does not authenticate the genuine website you intended to visit. It authenticates the name covered by that certificate.
Certificate issuance is also separate from an ordinary website visit. A CA such as Let’s Encrypt validates domain control during issuance; it does not need to participate in each browser handshake or generate that connection’s traffic keys.
Why Certificate Warnings Matter
An expired certificate, a hostname mismatch, an unknown issuer, or a missing intermediate certificate can prevent successful validation.
These errors do not all indicate an attack, but they mean the expected identity checks have not succeeded. Bypassing the warning or disabling verification can leave you with encryption to an endpoint whose identity has not been properly established.
How TLS Encrypts Application Data
After the handshake establishes application traffic keys, TLS uses symmetric authenticated encryption to protect the actual conversation.
For conventional TLS connections, the record protocol divides outgoing data into records. Each record is protected before transmission. The receiver verifies and decrypts incoming records before delivering their contents to the application.
A simplified authenticated-encryption operation is:
Secret key + nonce + plaintext + associated data
↓
Ciphertext + authentication tag
The components have different jobs:
Secret key: Protects the data and enables authentication.
Nonce: A value used with the key that must follow the algorithm’s uniqueness requirements.
Plaintext: The original application data.
Associated data: Information that is authenticated but not necessarily encrypted.
Authentication tag: Allows the receiver to detect invalid or altered protected data.
If authentication fails, the receiver rejects the record rather than treating its contents as trustworthy application data.
The authentication tag is not a public-key digital signature. It is part of symmetric authenticated encryption.
Reading a TLS 1.3 Cipher Suite
Consider:
TLS_AES_128_GCM_SHA256
Its components mean:
In TLS 1.3, key agreement and authentication are negotiated separately. This cipher-suite name does not tell you which certificate signature algorithm or key-agreement group was selected.
What Forward Secrecy Means
The “ephemeral” part of ECDHE means the key-agreement material is temporary.
With properly implemented ephemeral key agreement and discarded temporary secrets, stealing a server’s long-term authentication private key later does not, by itself, allow an attacker to decrypt previously recorded sessions.
This property is called forward secrecy.
It is especially important because attackers can record encrypted traffic even when they cannot currently decrypt it. Forward secrecy limits what a later compromise of the certificate’s private key reveals.
It does not protect against every compromise. Malware that steals plaintext from an endpoint, or an attacker who obtains active traffic secrets, can still expose data.
TLS 1.2 vs. TLS 1.3
TLS 1.3 simplifies and modernizes several parts of the protocol.
This does not mean every TLS 1.2 connection is insecure. Configuration matters. IETF deployment guidance supports properly configured TLS 1.2 and favors TLS 1.3 when available, while prohibiting negotiation of SSL and TLS 1.0/1.1.
TLS 1.3 also supports session resumption. Its optional 0-RTT early data can let returning clients send application data before the handshake completes, but that early data is vulnerable to replay. Applications must account for that risk rather than assuming every early request is safe.
What TLS Does Not Protect You From
A correctly protected connection is valuable, but it is only one security boundary.
Phishing and Dishonest Websites
A phishing site can obtain a valid certificate for its own domain. TLS can securely deliver a fraudulent page and securely transmit information to the attacker operating it.
Always check the address you are visiting. Encryption does not prove honesty.
Compromised Devices and Servers
TLS protects data in transit between its endpoints. It does not prevent:
Malware from capturing information before encryption or after decryption.
A receiving server from reading data you submit.
Sensitive information from being stored insecurely in databases, backups, or logs.
Transport encryption is not a substitute for endpoint security or secure data handling.
TLS Termination at an Intermediary
A CDN, reverse proxy, or inspection system may terminate a TLS connection and access the plaintext.
It may then establish a separate protected connection to another server. These are separate connections with separate trust boundaries, not necessarily one uninterrupted encrypted channel from your browser to the final application.
All Network Metadata
TLS does not make a connection invisible. Relevant network observers can still see information such as IP addresses, connection timing, and traffic sizes.
Ordinary ClientHello information can also reveal the requested hostname through Server Name Indication, or SNI. Encrypting application content does not hide every detail about the communication.
Build Practical TLS Troubleshooting Skills
Understanding TLS becomes more useful when you can connect each symptom to the stage that failed:
Keep the roles distinct as you practice: certificates authenticate, key agreement establishes secrets, and symmetric authenticated encryption protects application traffic. That distinction makes both TLS explanations and real troubleshooting much clearer.
For an optional next step beyond foundational study, Pluralsight provides guided security labs, feedback, assessments, and certification practice resources. Use them to apply concepts, identify weak spots, and focus your next study session.
Affiliate notice: Some links may earn a commission. Thanks for your support.
What Is End-to-End Encryption, and What Does It Protect? (Explained Clearly)Next
FAQ
Quick answers to the questions people usually ask about this topic.
Can someone on public Wi-Fi read my HTTPS traffic?
With correctly implemented TLS and successful certificate verification, someone monitoring the Wi-Fi network cannot read your HTTPS request or response contents. They can still observe metadata such as destination IP addresses, traffic sizes, and timing. Do not bypass certificate warnings: encryption alone is not enough if your browser cannot authenticate the endpoint.
Does HTTPS encrypt the full URL, including query parameters?
HTTPS encrypts the HTTP request, including the URL path and query string, between the TLS endpoints. However, the hostname may still be exposed through ordinary SNI, and the destination IP address remains visible. Sensitive values in URLs can also end up in browser history or server logs, so HTTPS does not make query parameters a safe place for passwords or secrets.
Can TLS 1.3 use an RSA certificate?
Yes. TLS 1.3 removes RSA key transport, not RSA-based authentication. An RSA certificate can still authenticate a server using a supported signature scheme. In the full handshake described in the article, ephemeral Diffie–Hellman establishes the shared secret; the certificate-associated RSA key signs handshake information rather than encrypting a session key.
Are free TLS certificates less secure than paid certificates?
A certificate's price does not determine the strength of the connection's encryption. A free certificate from a trusted CA such as Let’s Encrypt can support the same TLS encryption as a paid certificate when the negotiated settings are the same. Paid offerings may differ in validation, support, or management features, but neither a free nor a paid certificate guarantees that a website is honest.
If TLS usually authenticates only the server, how does a website verify my login?
TLS authentication and website login operate at different layers. In ordinary HTTPS, TLS authenticates the server and protects the connection; the application then verifies your password, passkey, or other login credentials over that protected channel. A client certificate is not normally required. With mutual TLS, the client also authenticates at the TLS layer.
How can I check which TLS version a website connection uses?
In many desktop browsers, open Developer Tools and look for a Security panel showing connection details such as the TLS version, cipher suite, and certificate. Exact options vary by browser. Inspect the negotiated connection rather than assuming that an HTTPS URL means TLS 1.3 is in use.
How can I turn TLS knowledge into practical cybersecurity skills?
Practice identifying certificate-chain problems, hostname mismatches, and protocol-negotiation failures, and explain which stage of the connection each issue affects. For an optional guided next step, explore Pluralsight for hands-on security labs, feedback, assessments, and certification practice resources to help you apply foundational concepts and identify study gaps.
Affiliate link — I may earn a commission at no additional cost to you.
Jay's Recommendation
Turn understanding into hands-on confidence
You've built the foundations. Pluralsight adds opportunities to practice in guided security labs, get feedback, and check your knowledge with assessments and practice exams, so your next step is more than another video.
đź› Put concepts to workBuild practical skills with guided security labs and feedback.
🎯Find your weak spotsUse assessments to focus on what needs more work.
📝Check your understandingUse practice exams to guide your certification preparation.
đź§Give study sessions directionOrganize further learning with curated paths and progress tracking.