HTTP and HTTPS — What Is the S Really Doing?
By Philip Russell | Philip M Russell Ltd
Suppose you are at the sailing club, using the guest Wi-Fi to book a place at supper. You type “One vegetarian meal, please” and press Send. Who should be able to read that sentence? You, certainly. The person organising supper, you hope. What about someone who can observe traffic on the club’s network?
Now put a different person at the far end. The booking page looks familiar, but someone has copied the club’s crest and sent you a link to their own website. Can the connection to that page still be encrypted?
Yes. Put those two examples together and you can explain both the value of the S in HTTPS and the limit of the promise it makes.
Follow one booking from the browser to the kitchen
HTTP stands for Hypertext Transfer Protocol. It gives browsers and web servers a way to exchange requests and responses. When you open the supper page, your browser asks for a resource. The server replies with the page. When you submit your choice, the browser sends another request carrying the details. The message saying “Your booking has been received” comes back in a response.
HTTPS is HTTP carried over a connection secured by Transport Layer Security, usually shortened to TLS. The S stands for secure. Your supper order can look exactly the same on screen either way. The difference becomes apparent when you ask what somebody along the route could read or change.
| Question | Plain HTTP | HTTPS with a valid, trusted connection |
|---|---|---|
| Could someone observing the traffic read the meal choice? | HTTP leaves the message readable to an observer who can see that traffic. | TLS encrypts the request and response while they travel. |
| Could someone in a position to alter traffic change the confirmation? | HTTP itself provides no way to detect the alteration. | TLS detects tampering. Altered data fails verification. |
| What evidence links the server to the name in the address bar? | HTTP provides no cryptographic proof of that link. | The browser checks the certificate for that hostname and verifies the server’s proof that it holds the corresponding private key. |
In GCSE Computer Science, those three rows have names worth learning: confidentiality, integrity and authentication. To remember them, ask who can read the order, who could change it unnoticed, and who answered the door. MDN’s guide to TLS
Why protect a page anyone can read?
A club publishes its race start time. Everyone is welcome to know that the first start is at 10.30. What would be the point of encrypting a public notice?
Imagine that the club publishes 10.30 but a sailor receives 11.30 because the response has been altered on its journey. Secrecy was never the issue. The sailor needed the time that the club actually published. With HTTPS, a change to the protected response in transit causes verification to fail. Of course, if the race officer originally typed 11.30 by mistake, HTTPS will faithfully deliver the mistake.
This is the example I would use in a lesson before introducing passwords or banking. As soon as money enters the discussion, it is tempting to give “keeps your details private” as the whole answer. A missed start gives integrity a meaning of its own.
How does a browser recognise a server it has never met?
Picture a first visit to a website. During the TLS handshake, the server presents a digital certificate. Among other things, the certificate lists the domain names it covers and carries a public key. A certificate authority has digitally signed it. The browser checks the name against the address it requested, checks the dates and verifies a chain of signatures leading to a trusted root.
There is one more question. A certificate is public, so what would stop somebody simply copying it? In a modern TLS handshake the server demonstrates possession of the matching private key. The private key stays secret. The browser and server also derive shared session keys, which are used to protect the traffic. The distinction matters: you can inspect the certificate yourself without acquiring the ability to read anybody’s booking. Mozilla’s guide to website certificates
Five-minute practical — inspect two real certificates
I like a computing practical that lets a student discover something I haven’t supplied on a worksheet. Certificate dates are ideal. They change when certificates are renewed, so the answer comes from the browser in front of you.
In desktop Firefox, open https://www.mozilla.org. After the page loads, copy just the hostname from the address bar onto paper. Use the final address if the site redirected you.
Select the site-information shield or padlock to the left of the address. Choose Connection secure, then More site information or More information, depending on your version. In the Page Info window, choose View Certificate.
Start with the website certificate, usually the first tab. Under Subject Alternative Names, find an entry covering the hostname you wrote down. An entry such as
*.example.orgcoverswww.example.org. The same wildcard alone does not cover bareexample.orgora.b.example.org.Record the issuer and the Not Before and Not After dates. The issuer identifies the authority that signed this certificate. The dates describe its validity period. A later visit may show a renewed certificate.
Repeat with https://www.bbc.co.uk. Compare the final hostname, matching certificate entry, issuer and dates. Two sites can share an issuer and still belong to entirely different organisations. Firefox certificate viewer instructions
Question for a student: Which entry would you point to if I asked, “Does this certificate cover the address I visited?” Now try a harder question. Which entry would tell you whether to buy a second-hand camera from that site? The first question has a field you can inspect. The second needs evidence about the seller.
A perfectly secure connection to the wrong shop
A used camera is advertised at a tempting price. The seller sends a payment link. The page uses HTTPS, displays the right camera photograph and carries a familiar shop logo. Before entering anything, read these two illustrative addresses:
https://shop.example.org/used-camerashttps://shop.example.org.camera-sale.example/checkout
In the first, the hostname is shop.example.org. In the second, the hostname continues beyond that familiar-looking name and ends in camera-sale.example. Stop at the first forward slash after the hostname and read back from there. A valid certificate for the second address would establish a protected connection to that second host. The copied shop name near the beginning proves nothing about who runs it.
My practical habit would be to open the retailer from a bookmark or a known address and find the offer from there. If the browser itself displays a certificate warning, leave the page and check the address independently before entering details. Even on a valid connection, the receiving website can read what you submit. The S gives no guarantee about how long it will keep the information or what it will do with it. Chromium’s explanation of the connection indicator
What I want a student to remember
Imagine asking a student to finish the sentence “I know it’s safe because…” I would pause them at it. What exactly is safe? The journey of the message? The payment request? The person offering the camera? That one small word can conceal three quite different judgements.
Return to the sailing-club supper. HTTPS lets your browser send a meal choice privately to the verified hostname and detect interference on the way. You still choose which address to visit. The next time a browser tells you a connection is secure, try saying its promise aloud: “My message is protected on its way to this address.” Then read the address. That last part is yours.






