What Is HTTPS? A Complete Guide to the Secure Web
DEFINITION
HTTPS is, in plain terms, ordinary web traffic carried inside a secure channel. The requests and responses are the same ones plain HTTP has always used. What changes is that they travel wrapped in encryption and tied to a verified server identity. This guide explains what that channel is, how it is built, what it protects, what it leaves exposed, and why it looks the way it does.
You already recognize the signals: the small padlock in your browser and the “https” at the start of a web address. They appear so often that most people stop noticing them. Yet those two cues represent one of the most important pieces of engineering on the modern internet: the mechanism that lets you bank, shop, and sign in without broadcasting your data to anyone who happens to be listening.
What HTTPS actually is
HTTP, the HyperText Transfer Protocol, is the protocol browsers use to transfer data across the web. HTTPS is the secure version of HTTP, which began using SSL to encrypt that data. Nowadays, HTTPS makes use of TLS, the more modern and secure version of the protocol. The important point is that HTTP and HTTPS use the same methods to move information. HTTPS simply adds a layer of encryption and server authentication on top, which is what makes it more secure.
Historically, browsers connected to web servers over plain HTTP on TCP port 80. Because HTTP is a plain-text protocol, anyone positioned between the browser and the server could intercept and read the data in transit or silently tamper with the data. This makes it unsuitable for anything requiring confidentiality or authenticity. HTTPS instead uses port 443. When the communication between a browser and a server needs to be secure, and the server has a valid certificate installed, the browser switches to the encrypted channel automatically. Communication over insecure channels often leads to people connecting to untrusted servers, getting exposed to malware, eavesdropping, phishing, and other dangers. Because of these widespread risks, major browsers Chrome, Firefox, Safari, etc., now steer connections to HTTPS by default.
There is a useful precision worth keeping in mind. The “https” URI scheme is now defined in the core HTTP specification itself rather than in the older standalone document that first described running HTTP over TLS. The practical consequence is that HTTPS is now best understood as a channel with certain security properties. This, in turn, allows the underlying cryptography to evolve without changing what HTTPS means (as long as the necessary properties are met), which helps the internet to be more cryptographically agile.
What the secure channel protects, and what it does not
The three guarantees
A correctly established TLS connection provides three core properties. These can be described cleanly in the context of the handshake:
- Confidentiality.
Data sent over the channel is encrypted and visible only to the server and the client. If an attacker intercepts the traffic, the encrypted content appears unintelligible gibberish unless they hold the correct decryption key. - Integrity.
Digital signatures ensure the data has not been modified during transfer, so tampering is detectable rather than silent. - Authentication.
The server is authenticated for as long as the connection is valid, so you can be confident you are talking to the genuine server rather than an imposter.
Together these defeat passive and active man-in-the-middle attacks. Imagine logging into an online banking portal while someone intercepts the traffic. Without authentication, it is impossible to know whether you are indeed connecting with the bank or with an impostor. Without encryption, your credentials could be exposed, leading to identity theft, malware infection, or financial loss.
What still stays exposed
Honesty about the limits of the security properties of HTTPS matters as much as the security guarantees. The secure channel does not hide everything. The destination IP address of the server remains visible to anyone on the network path. In older handshakes, the server’s name you are requesting was sent in the clear before encryption begins. The DNS lookup that preceded the connection typically happens outside the channel entirely. Furthermore, timing, packet sizes, and traffic volume can leak information even when the payload is encrypted.
There is also a limit to what a certificate attests. A certificate proves that its holder controls a particular name. It does not vouch for the honesty of the business behind the site, the accuracy of the content, or the intent of the operator. This is why a padlock alone is never proof that a site is safe. Phishing operators obtain valid certificates routinely. To learn more about this, see our dedicated page on digital certificates, or our specialized guide on SSL/TLS certificates.
SSL and TLS: how we got here
People still say “SSL” when they almost always mean “TLS.” Understanding the history of SSL and TLS explains why.
SSL, or Secure Sockets Layer, was developed by Netscape in the 1990s to encrypt and secure communications over the internet. The evolution ran roughly as follows:
- SSL 1.0 was never released, because of security problems.
- SSL 2.0 arrived in 1995, but still carried many flaws.
- SSL 3.0 followed in 1996, changing how the internet worked. (It has since been deprecated, along with all prior versions, in 2015.)
- The Internet Engineering Task Force (IETF) then took over, developing TLS as an improvement on SSL. TLS 1.0 shipped in 1999, based largely on SSL 3.0, but with enough security changes that the two did not interoperate.
- TLS 1.1 appeared in 2006 and was quickly overtaken by TLS 1.2 in 2008, so many sites jumped straight from TLS 1.0 to TLS 1.2.
- TLS 1.3 was finalized in 2018 after nearly 30 IETF drafts. Microsoft, Apple, Google, Mozilla, Cloudflare, and Cisco had all deprecated TLS 1.0 and 1.1 by March 2020, leaving TLS 1.2 and TLS 1.3 as the versions in active use.
TLS is, in effect, a newer and more secure version of SSL. The two serve the same purpose of protecting sensitive information during transmission, but the cryptography under the hood has changed enormously. SSL is a protocol of the past; modern browsers, APIs, and services rely on TLS. Continuing to reference SSL is a matter of legacy naming, it’s not what happens in real deployments of HTTPS.
How the TLS 1.3 handshake works
The handshake at a glance
Every HTTPS connection begins with a handshake. This is the moment where the two sides agree on cryptographic algorithms, cryptographic keys, and the client authenticates the server. The handshake happens behind the scenes, instantly and automatically, without interrupting the user. A failed handshake, by contrast, ends the connection, usually with a warning in the browser.
The handshake accomplishes three things:
- an establishment of session keys,
- the setup (algorithms and modes) of the data encryption that uses the session keys,
- and server authentication to verify the server’s identity.
TLS 1.3 completes this in a single round trip between client and server, which makes connections noticeably faster and more responsive than earlier versions of TLS that needed more back-and-forth.
How TLS 1.3 differs from TLS 1.2
TLS 1.3 is both faster and safer than TLS 1.2. The meaningful upgrades include:
- A faster handshake.
TLS 1.3 needs only one round trip to establish a secure connection, where TLS 1.2 and earlier versions required more. - Mandatory forward secrecy.
Forward secrecy is the property that provides the guarantee for confidentiality of a session, even if the main key is compromised in the future. Earlier versions could provide forward secrecy, but only if the negotiated cipher suite happened to use ephemeral Diffie-Hellman. Static RSA key transport remained available and widely deployed in TLS 1.2, so whether a connection was forward secret depended on the configuration. In TLS 1.3, every full handshake derives its traffic keys from a key exchange whose private key material is generated fresh for that handshake and discarded when it completes. Compromise of the server’s long-term private key, therefore, does not retroactively decrypt previously captured sessions. If one session key is ever compromised, the others stay safe, which limits the damage and improves resistance to brute-force and man-in-the-middle attacks. - Removal of static RSA key exchange.
Related to the previous point, the old mode, in which the client encrypted session material under the server’s long-term RSA key, has been removed. That mode meant a single stolen private key could decrypt every past session. Note that RSA still works fine as a signature algorithm and in certificates; it is the key-transport role for RSA that was removed. - Encrypted handshake messages.
Alert and handshake messages that used to travel in the clear are now encrypted, so an eavesdropper learns less about the connection. - Stronger, simpler cipher suites.
TLS 1.2 still supported ciphers with known weaknesses. TLS 1.3 supports only algorithms and ciphers that currently have no known vulnerabilities, and it relocates version negotiation so that downgrade attacks are harder.
Cipher suites and algorithm negotiation
To expand upon the final point, a cipher suite is a combination of algorithms used to secure a connection. Historically it was a bundle of key exchange, authentication, bulk encryption, and message authentication, all fixed together. That bundling is why TLS 1.2 had a sprawling list of suites.
TLS 1.3 changed the meaning of the term. A suite now names only two things: the AEAD cipher that protects the data (an encryption mechanism that protects the ciphertext from being tampered, with modern options including AES-GCM and ChaCha20-Poly1305) which is now mandatory, and the hash function used for key derivation and transcript verification. Key exchange and authentication are negotiated separately. The result is a short, clean list of suites with no weak options to misconfigure. It is also why post-quantum key exchange could be added later as a new negotiated group without inventing new cipher suites at all.
The record layer and key schedule
TLS is really two layers on one connection: the handshake protocol that authenticates and establishes keys; once the handshake is done, the record protocol which protects everything on the wire afterward takes over.
The record layer fragments data into records and applies an Authenticated-Encryption with Associated Data(AEAD) transform to each one independently. Because each record is protected on its own (using a nonce that both parties can derive), reordering, truncating, or replaying a record within a connection fails authentication. TLS 1.3 also hides the true record type inside the encrypted payload, so an observer can no longer tell a data record from an alert by looking at the header.
The keys themselves come from a key schedule built on a specially designed HKDF (a function used to derive well-formed keys from input keying material). Every derived secret takes the running hash of the handshake transcript as an input, which means any tampering with a handshake message produces different keys on the two ends and the connection fails. Each direction of traffic gets its own secret, so compromising one direction does not expose the other. And because key derivation is one-way (i.e. previous secrets cannot be derived from future secrets), a key update that advances the secrets mid-connection prevents an attacker who captured earlier records from reading them if they break a later key. This structure is what makes long-lived encrypted connections practical.
Session resumption and 0-RTT
Reconnecting to a server you have already visited may not require repeating the full handshake. After a successful connection, the server can issue a session ticket to go along with the resumption master key to be used in the future for reconnection. On a later visit, the client presents the ticket and proof of knowledge of the resumption master key, and the two sides resume quickly. To keep forward secrecy, the two may perform a fresh ephemeral key exchange alongside the ticket rather than relying on the pre-shared key alone.
TLS 1.3 also introduced 0-RTT early data, which lets a returning client send a request immediately, before the handshake finishes, to save a round trip. The performance gain is real, and so is the trade-off. Early data is not forward secret, and it can be replayed by an attacker who captures it, because it does not depend on any fresh value from the server. For that reason early data should be limited to safe, idempotent requests such as reads, never to actions that change state. TLS 1.3 has anti-replay measures, but they reduce not eliminate the risk..
Verifying server identity and the chain of trust
From certificate to trust anchor
Encryption alone is not enough; the client also has to know it is talking to the right server. That is the job of the certificate and the chain of trust.
When you install an SSL/TLS certificate on a server, you also install an intermediate certificate chain that links your certificate to a Certificate Authority’s root certificate. Root certificates are self-signed and form the basis of an X.509-based Public Key Infrastructure (PKI), the system that supports secure web browsing. The linkage from your certificate up through intermediates to a trusted root is the “chain of trust.”
A helpful way to picture CAs is as an analogue to digital Department of Motor Vehicles. It decides which identities get assigned to a certificate, and a certificate is like a driver’s license. Both carry information about the holder and have an expiration date. Browsers and operating systems ship knowing the public keys of a handful of trusted CAs. When a browser receives a server’s certificate, it verifies each certificate in the chain recursively until it traces back to a root CA it already trusts. If the root is publicly trusted, any valid certificate chained to it is trusted across major browsers and operating systems. To learn more, check out our deep dive on what is PKI.
Certificates come in validation levels: Domain Validated (the CA confirms control of the domain), Organization Validated (the CA also verifies the organization), and Extended Validation (the most rigorous background check). Because domain validation is covered in depth on its own page, this guide keeps the treatment brief and points you there for the details. See our entry on certificate validation to learn more about this topic.
Names, SANs, and wildcards
Proving a certificate is genuine is a separate step from checking that it matches the hostname you asked for. That match is what stops a valid certificate for one site from being misused for another. The match is always performed against the Subject Alternative Name extension. The CA/Browser Forum Baseline Requirements have required a SAN containing at least one entry in every publicly trusted TLS certificate since 2012. The older practice of carrying the identity in the subject commonName field is deprecated; where the field appears at all, it must repeat a value already present in the SAN. Clients should not rely on it.
What varies between certificate products is how many names the SAN holds and whether any of them is a wildcard:
- Single-domain certificates secure one fully qualified domain name, such as www.keyfactor.com, and nothing else.
- A w****ildcard certificate lists a name such as `*.keyfactor.com`, which matches exactly one label in the leftmost position. It covers, for example `blog.keyfactor.com`, but not `keyfactor.com` itself. The Baseline Requirements constrain what may appear in those entries. Some examples of this are:
- Only DNS and IP address entries are permitted for TLS server certificates.
- Internal server names and reserved IP addresses have been prohibited since October 2016.
- Wildcards may not sit at a registry-controlled level, so *.com cannot be issued, and the CA must independently validate control of each name in the certificate before issuing it.
Keeping certificates fresh: revocation and short lifetimes
A certificate that looks valid can still be untrustworthy, for instance if its private key was exposed. The traditional answer is revocation, and the set of mechanisms (such as revocation lists and online status checks, sometimes delivered by stapling the status to the handshake) that let clients learn a certificate should no longer be trusted. Revocation has always been imperfect in practice, which is part of why the industry is leaning on a simpler lever: shorter lifetimes leading to fewer revoked certificates at a time.
Historically most certificates lasted one to three years. Today the longest allowed lifetime is 200 days. The CA/Browser Forum, the voluntary body of certificate issuers and browser vendors, has passed a ballot to cut the maximum lifetime to just 47 days. Even before expiry, events such as the Heartbleed vulnerability, SHA-1 deprecation, company mergers, or policy changes can force earlier reissuance. A shorter validity window limits how long a compromised or mis-issued certificate stays dangerous, but it also makes manual renewal impractical, which points directly at automation.
Where TLS terminates in the real world
In real deployments the tidy picture of one browser talking to one server rarely holds. TLS is often terminated at an edge server or load balancer, then re-encrypted on its way to the origin, and internal service-to-service hops may run their own mutual TLS. The security guarantee the user sees ends wherever the channel terminates; what happens between the edge and the origin is a separate decision.
TLS also reaches well beyond public websites. Enterprises often use SSL/TLS to secure network access control, virtual private networks, single sign-on, and Internet of Things devices (where a digital identity ensures only trusted devices connect). Because the certificates that are used for SSL/TLS spread across so many environments, an organization’s real certificate inventory is far larger than its list of public hostnames, which is exactly why visibility becomes a challenge at scale.
Client authentication and mutual TLS
The handshake usually authenticates only the server, since it is generally not the case that the server must know who the client is. However, it is possible to authenticate the client too. This optional handshake mode where the server authenticates the client is the basis of mutual TLS. In this mode the server asks the client to present its own certificate and prove control of the corresponding key.
Mutual TLS is used where both ends need strong assurance of each other’s identity: service-to-service communication inside a distributed system, zero-trust architectures where no request is trusted by default, and high-security APIs where a shared password is not enough. It trades some operational complexity for a much stronger identity guarantee on both sides of the connection.
Post-quantum HTTPS
TLS is secure against classical computers, but it was originally not designed to withstand a sufficiently powerful quantum computer, which could break the key-exchange algorithms used in the handshake. That has raised the alarm about Harvest Now, Decrypt Later (HNDL) attacks, in which an adversary records encrypted traffic today and waits to decrypt it once quantum capability arrives. That threat makes confidentiality the urgent half of the problem: data captured now is at risk even before quantum computers are practical. The most current version of the TLS 1.3 specification also supports quantum resistant algorithms, addressing the HNDL concern directly. The industry response is post-quantum cryptography (PQC). Future handshakes replace traditional key-exchange algorithms like ECDH with key encapsulation mechanisms (KEMs) designed to resist quantum attack, standardized through bodies such as NIST and ISO, and adopted by the IETF.
Authentication changes are following behind key exchange, because in many cases they are less urgent, since forging a signature requires a quantum computer that exists now, not one that merely captures traffic for later. Migrating certificates and infrastructure to PQC-ready configurations is a practical, near-term concern, not a distant one. The conservative path is a hybrid model that runs classical and post-quantum algorithms together, giving immediate protection today and resilience for tomorrow. Hybrid schemes remain secure as long as one of the components is secure. Hybrid versions of TLS serve as the stepping stone to quantum-safe TLS.
Why the protocol looks the way it does
Many of TLS 1.3’s design choices are direct responses to past failures. Protection against downgrade attacks (attacks where one party forces the other one to choose an old weak algorithm), such as POODLE and FREAK, is done by binding every key to a keyed hash of the handshake transcript, making messages impossible to forge without detection. This way an attacker cannot quietly force both sides onto weaker settings without being discovered and have both parties abort the connection.
Insecure renegotiation, a source of earlier attacks, was also removed. TLS-level compression, which enabled its own class of attacks, was removed as well. The pattern is consistent: where an old feature created risk, TLS 1.3 took it out rather than trying to defend it forever. The shorter cipher-suite list and the removal of weak algorithms follow the same logic. TLS has been getting more secure as time goes on. However, there is a growing complexity that arises in order to preserve backwards compatibility with all the different versions.
Wie Keyfactor helfen Keyfactor
Put these trends together and one conclusion stands out: HTTPS can no longer be approached by a set-and-forget it mentality. Certificate lifetimes are shrinking toward 47 days, TLS resides in more places than ever, and post-quantum migration is approaching. Most teams already rely on dozens or hundreds of certificates spread across their environments, and a single missed renewal can cause an outage, a security gap, or a compliance failure.
That is where strong TLS implementations, reliable certificates and lifecycle management come in. Keyfactor’s Bouncy Castle contributes a fully independent, open-source TLS stack, shipping a FIPS 140 variant for regulated deployments. EJBCA provides a CA/PKI stack to issue, manage and revoke the X.509 certificates that TLS relies on. Keyfactor’s Command helps teams discover every certificate across their environment, replacing guesswork with an accurate inventory. The result is a shift from reactive firefighting to proactive visibility and automation, with crypto-agility needed to stay quantum-ready as standards evolve.
Summary and key takeaways
- HTTPS is HTTP carried over a secure TLS channel. The web requests are the same; the TLS channel adds protection.
- That TLS channel provides confidentiality, integrity, and server authentication, but it does not hide your destination IP, older-handshake server names, DNS lookups, or traffic patterns. Moreover, a certificate does not necessarily vouch for a business’s honesty.
- “SSL” is legacy naming. TLS replaced it, and TLS 1.3 is the most recent version, which is faster and safer by design.
- Trust depends on certificates that chain from the server’s certificate to a root the browser already trusts, that match the hostname. Freshness is guaranteed by checking they are not revoked and have appropriate lifetimes and time stamps.
- The future should be automated and quantum-ready. As lifetimes drop to 47 days and post-quantum migration nears, managing certificates at scale is the practical challenge.
If you have not looked closely at your own certificate posture lately, now is the moment to assess how many certificates you hold, where they live, and whether their renewal is automated.
Häufig gestellte Fragen
Got HTTPS questions?
We’ve got answers.
Die Quelle abonnieren
Stay ahead of the curve with Keyfactor’s monthly newsletter — packed with curated insights, expert tips, must-watch videos, and practical guides to help you stay secure, agile, and quantum-ready.