TLS certificate
The ID card a website shows your browser to prove it is who it claims to be.
A TLS certificate is a small file that says 'the public key for example.com is this one', signed by a certificate authority (CA) that your browser already trusts. When you open a site over HTTPS, the server sends its certificate. The browser checks that the signature is from a known CA, that the name matches the site you asked for and that it has not expired. If all three pass, you get the padlock and the browser uses the public key from the certificate to start encryption with that server, and nobody else.
The CA's job is to check, before signing, that whoever asked for the certificate actually controls the domain. Since 2015 Let's Encrypt does this automatically and for free: the server proves control by publishing a token the CA asked for, gets a certificate valid for 90 days, and renews it on its own. That is why nearly every site has HTTPS today and why 'SSL certificate', the old name, is still what many people call it.
What a certificate proves is narrow: that you are really talking to mybank.com. It says nothing about whether mybank-secure-login.com is honest; a phishing site can have a perfectly valid certificate for its own look-alike name. And an 'expired certificate' warning usually means an administrator forgot to renew, not an attack, although the safe move is still not to type anything there.
Click the padlock in your browser and you can read the certificate yourself: who issued it, for which names, and until when. It is the same mechanism, in reverse, that lets a company sign its software so your computer knows an update really came from them.
Keep in mind
- A certificate binds a domain name to a public key, signed by a trusted authority.
- The browser checks the signature, the name and the expiry date before showing the padlock.
- Let's Encrypt made certificates free and automatic; most sites renew every 90 days.
- It proves you reached the real domain, not that the domain is trustworthy.
Go deeper
- What is an SSL certificate? (Cloudflare Learning Center)
- Let's Encrypt: how it works
- Public key certificate on Wikipedia