Software & Internet

HTTPS and TLS Explained: How Your Browser Keeps Connections Private

HTTPS is ordinary web traffic wrapped in TLS, a protocol that encrypts the connection and checks a site's identity. Here is how the handshake works, what it protects, and what it does not.

Cable network

HTTPS is the normal web protocol, HTTP, carried inside an encrypted and authenticated tunnel built by TLS (Transport Layer Security). The tunnel stops people on the network path from reading or silently altering what passes between your browser and a website, and it lets the browser check that it reached the site it intended.

This guide walks through how that tunnel is built, what each side proves to the other, what changed in the current version, and where the protection ends.

What is HTTPS, in plain terms?

HTTP, the Hypertext Transfer Protocol, is the set of rules browsers and servers use to request and deliver pages. On its own it sends everything as readable text. Anyone who can see the traffic, such as the operator of a shared Wi-Fi network or an intermediate network provider, could read it or change it on the way.

HTTPS is the same conversation with TLS underneath. TLS is the successor to SSL (Secure Sockets Layer), which Cloudflare notes was developed by Netscape in the 1990s. People still say “SSL certificate” out of habit, but the protocols in use today are TLS. Cloudflare says TLS 1.2 was standardized in 2008, and the IETF (Internet Engineering Task Force, the body that publishes internet standards) completed TLS 1.3 in 2018 as RFC 8446.

TLS gives a connection three properties:

  • Privacy: third parties cannot read the content.
  • Integrity: third parties cannot alter it undetected.
  • Authentication: the browser can verify the server’s identity, using a certificate.

How does TLS work step by step?

TLS combines two kinds of cryptography because each solves a different problem. Public-key (asymmetric) methods let two strangers agree on a secret over an open network, but they are comparatively slow. Symmetric encryption, where both sides use the same key, is fast, so it carries the bulk of the data. The handshake uses the first to set up the second.

A simplified TLS 1.3 connection runs like this:

  1. Hello and key share. The browser opens the conversation by listing what it supports and, in the same first message, sends its half of a Diffie-Hellman exchange, a mathematical method for two parties to derive a shared secret without ever transmitting it. Cloudflare’s technical walkthrough gives the example of Chrome sending an X25519 key share, X25519 being a widely used curve for this purpose.
  2. Server reply. The server answers with its own half of the exchange. At this point both sides can compute the same shared secret, and everything after the server’s first reply can be encrypted.
  3. Certificate. The server presents its certificate, a signed document tying a domain name to a public key.
  4. Proof of possession. The server signs the whole handshake transcript with the private key matching that certificate. Cloudflare explains that this signature is what shows the server really holds the key, and it also covers the negotiation itself, so tampering with it is detectable.
  5. Finished. Both sides confirm the handshake and switch to fast symmetric encryption for the web traffic itself.

If the server does not support any of the key shares the browser guessed, Cloudflare notes it sends a HelloRetryRequest naming the groups it does support, and the client tries again at the cost of an extra round trip.

What does the certificate actually prove?

A certificate is issued by a certificate authority (CA), an organization browsers have agreed to trust. When a browser connects it checks that the certificate names the domain being visited, that a trusted CA signed it, and that it has not expired.

That is a narrower promise than many people assume. A valid certificate shows that whoever answered holds a key the CA tied to that domain name, and that the CA was satisfied the requester controlled the domain. It does not show that the site is honest, safe or run by the organization it appears to be. A fraudulent site can obtain a perfectly valid certificate for its own look-alike domain.

Certificates also carry an end date, and that window has been shrinking. Our article on shorter TLS certificates and automated renewal covers how issuance is validated and why renewals are increasingly handled by software.

Why is TLS 1.3 considered an upgrade?

According to the IETF’s own description of the work, TLS 1.3 removes optional features and outdated algorithms that attackers had exploited in TLS 1.2, includes only algorithms with no known vulnerabilities, and encrypts more of the handshake. It also enables forward secrecy by default, which means that stealing a server’s long-term key later does not expose traffic recorded earlier.

Cloudflare’s explanation of why this works is that TLS 1.3 removed RSA key exchange, leaving only ephemeral Diffie-Hellman, in which a fresh key pair is generated for each connection. Under the older RSA approach, an attacker who recorded traffic and later obtained the server’s private key could decrypt it retroactively.

Aspect TLS 1.2 TLS 1.3
Round trips before the request is sent Two, per Cloudflare One in the common case
Key exchange RSA key transport allowed Ephemeral Diffie-Hellman only
Older ciphers (RC4, CBC mode, SHA-1) Permitted Removed
Negotiation protected by signature No Yes

Cloudflare describes the speed gain as real but modest on fast links, and larger on mobile networks, where it said the older handshake could add more than half a second. Those figures are the company’s 2016 description of its own measurements and expectations, so they illustrate the principle rather than guarantee a result on any given connection.

Is zero round trip (0-RTT) resumption safe?

TLS 1.3 lets a returning client send encrypted data in its very first message. It is fast, but it has a known limit. Cloudflare warns that if an attacker captures a 0-RTT packet, they can replay it to the server, and that 0-RTT data has no interactivity, so the server cannot challenge it.

The mitigations it describes are straightforward. Clients should send only safe requests, such as a plain page fetch, in 0-RTT data, and servers can reject early data when a session ticket looks too old. In practice this is a trade-off site operators make on their own: it speeds up repeat visits but is unsuitable for actions that change something, such as submitting a payment.

What does HTTPS not protect?

The padlock is often read as “this site is safe,” which stretches it too far. Several limits are worth knowing.

Metadata still leaks

Cloudflare points out that the SNI (Server Name Indication), the site name a browser sends so the server can pick the right certificate, has traditionally been sent in the clear. A network observer therefore can see which site you are contacting even though the content is encrypted. The IP address is a further, weaker signal. Encrypted Client Hello (ECH) is a work-in-progress IETF extension designed to hide this, with keys published through DNS. Cloudflare’s 2020 post described it as not yet ready for internet-scale use, so readers should check current deployment before assuming it applies. DNS lookups are a related exposure, discussed in our piece on how DNS works and why outages spread.

The server still sees everything

TLS protects the path, not the destination. The website receives your data in readable form. That differs from end-to-end designs, where even the service operator cannot read messages; see our explainer on end-to-end encryption for the contrast.

Identity is limited to the domain

As noted above, a certificate speaks to the domain name. Phishing sites routinely use HTTPS, so a padlock says nothing about whether a link in a message is genuine.

What are the common mistakes and misconceptions?

  • “HTTPS means the site is trustworthy.” It means the connection to that domain is protected, nothing more.
  • “SSL and TLS are different things I should choose between.” TLS replaced SSL. Modern software should not use the old SSL versions.
  • “Encryption hides which sites I visit.” Not fully, for the reasons above.
  • “Once enabled, HTTPS needs no attention.” Certificates expire, and configurations age. A lapsed certificate produces a full-page browser warning, which is why monitoring matters.
  • “Clicking through a certificate warning is harmless.” The warning exists because the identity check failed. It can mean a simple expiry, but it can also mean the connection is being intercepted.
  • “HTTPS replaces other protection.” It does not secure a vulnerable website, a stolen password or a compromised device.

What varies by place, organization and date?

Versions are not a matter of taste for every organization. NIST’s guidance on TLS server configuration, SP 800-52 Revision 2 published in August 2019, requires that U.S. government TLS servers and clients support TLS 1.2 with FIPS-based cipher suites, and requires support for TLS 1.3 by January 1, 2024. NIST’s page also carries a planning note dated November 19, 2026 saying the publication will be revised: TLS 1.2 support would become “may” rather than “should,” and TLS 1.0 and 1.1 would not generally be allowed. No date was given for the revised document, so those details may change.

For ordinary users, the version is chosen automatically between browser and server, and current browsers handle this without any settings. For site owners, the practical differences are which versions to enable, how certificates are renewed, and whether newer transports are in use. Newer web transports build on the same security ideas, as covered in our article on HTTP/3 and QUIC.

Post-quantum protection is the next shift. In a September 2026 post, Cloudflare said its Automatic Key Exchange feature probes origin servers that support TLS 1.3 to learn which key-agreement algorithms they accept, and prefers post-quantum connections where available. That is one company’s deployment, not a universal change, but it shows the key-exchange step is where the standard is evolving.

Conclusion: a locked door, not a character reference

HTTPS gives a web connection privacy, integrity and a verified domain name, and TLS 1.3 does it with fewer round trips and fewer legacy weaknesses than before. What it cannot do is vouch for the people behind a site, hide every detail of your browsing, or protect data once it reaches the server. Treat the padlock as a sign the line is private and the domain is the right one, and keep judging the destination on other grounds.

This article is general information, not a substitute for professional security advice.

Sources: Cloudflare; Internet Engineering Task Force; National Institute of Standards and Technology