Lesson 2 of 4 · 9 min
Digital signatures, certificates, and TLS
How a browser knows it is really talking to your bank, why a padlock icon means something specific, and what it does not mean.
The previous lesson left one question open: asymmetric encryption lets you send a secret to someone whose public key you have — but how do you know that public key actually belongs to them, and not to an attacker in between? Digital signatures and certificates answer that, and together they make TLS, the protocol behind every https:// address, possible.
Digital signatures: proof of origin, not secrecy
A digital signature runs asymmetric encryption in reverse. Instead of encrypting a message with someone’s public key so only they can read it, the sender signs a message with their own private key, and anyone can verify it using the sender’s public key. If the verification succeeds, two things are true: the message came from whoever holds that private key, and it was not altered afterwards — the same collision-resistance property from the previous lesson’s discussion of hashing is what makes tampering detectable. A signature proves authenticity and integrity; it does not, by itself, keep the message secret.
Certificates: a signature vouching for a public key
A digital certificate solves the “whose public key is this really” problem. As Cloudflare’s Learning Center explains, an SSL/TLS certificate is “a data file hosted in a website’s origin server” containing the domain name, the public key, an expiry date, and — critically — “the certificate authority’s digital signature.” A certificate authority (CA) is a trusted third party that checks a website controls the domain it is requesting a certificate for, then signs that certificate with its own private key. Your browser ships with a built-in list of CAs it trusts, so when it receives a certificate signed by one of them, it can trust the public key inside without ever having met the website’s operator. A self-signed certificate — one a site signs itself rather than getting from a CA — has no such outside vouching, which is why browsers treat one as untrustworthy by default.
TLS: putting both to work
RFC 8446, the specification for TLS 1.3, describes a handshake in phases: key exchange, in which the two sides establish shared secret material; then authentication, where, in the RFC’s words, “the server side of the channel is always authenticated; the client side is optionally authenticated” — normally only the website proves its identity, not the visitor. The server proves who it is using its certificate and a signature only it could produce with its private key. Once both sides trust the connection, they derive fast symmetric keys (the previous lesson’s AES, typically) for the actual data. RFC 8446 states plainly what this buys you: confidentiality and integrity for the data exchanged, and authentication of the server. It also states, just as plainly, a limit: “TLS does not hide the length of the data it transmits”, and metadata such as which server you connected to and when remains visible to anyone positioned to observe the connection.
What the padlock icon does and does not mean
| The padlock / https:// means | It does not mean |
|---|---|
| The connection to that server is encrypted and its integrity is protected | The website is trustworthy, honest, or safe to use |
| You are talking to whoever controls that domain name | That domain name is who you think it is — a convincing lookalike domain gets a valid certificate too |
| No one on the network path can read or silently alter the traffic | No one can see that you visited the site, when, or how often |
A phishing site built on a lookalike domain can have a perfectly valid certificate: TLS authenticates the domain, not the intent of whoever registered it. This is why the earlier lesson on how attacks unfold treats a fake login page, padlock and all, as a live threat, not a contradiction.
Key takeaways
- A digital signature proves who sent a message and that it was not altered — it does not by itself keep the message secret.
- A certificate is a signed statement, from a certificate authority a browser already trusts, that a given public key belongs to a given domain.
- A TLS handshake (RFC 8446) always authenticates the server; the visitor is rarely authenticated the same way.
- TLS protects confidentiality and integrity in transit, and confirms you reached the domain you intended — it does not hide that a connection happened, nor guarantee the site behind it is trustworthy.
- A phishing site on a lookalike domain can display a perfectly valid padlock; the certificate authenticates the domain, not the operator’s intent.
Check yourself
1. What does a valid digital signature on a message prove?
- That the message is secret from everyone but the recipient
- That the message came from the holder of a specific private key and was not altered — Right.
- That the message was sent using TLS
- That the message is free of any harmful content
Signatures verify authenticity and integrity using the signer’s key pair; they do not encrypt the message for secrecy.
2. What role does a certificate authority (CA) play in TLS?
- It stores your passwords on your behalf
- It vouches, with its own signature, that a public key belongs to a given domain — Right.
- It encrypts all traffic on the internet
- It blocks phishing websites automatically
A CA checks domain control and signs the certificate, letting browsers that already trust the CA trust the certificate’s public key without contacting the site operator directly.
3. Per RFC 8446, which side of a typical TLS connection is always authenticated?
- Only the client (your browser)
- The server — Right.
- Neither side by default
- Both sides, always, with no exceptions
RFC 8446 states the server side is always authenticated, while client authentication is optional and much less common for ordinary browsing.
4. Why can a phishing website still show a valid padlock icon?
- Padlock icons are cosmetic and mean nothing
- A certificate authenticates a domain name, not the honesty of whoever registered it — Right.
- Browsers no longer check certificates
- Phishing sites cannot use HTTPS at all
TLS certificates confirm you are talking to the actual holder of a given domain; a convincing lookalike domain can obtain a perfectly valid certificate of its own.
Do it with FireAI
Put this lesson into practice on your own Mac.
Sources
- RFC 8446: The Transport Layer Security (TLS) Protocol Version 1.3
- Cloudflare Learning Center: What is an SSL certificate?
Put it into practice on your Mac
Try every feature free for 17 days, no card needed.