This article is free to read. Creating a lesson uses your daily or stored credits; review the language and settings before starting.
How do SSL certificates work?
Quick answer
SSL certificates work by using public-key cryptography to verify a website's identity and establish an encrypted connection. The website's owner obtains a certificate from a trusted authority, which signs it digitally. The browser checks this signature, then confirms the server holds the matching private key while both sides agree on a session key for encrypting all data.
An SSL certificate proves a website's identity and enables encrypted communication, so data sent between a browser and server cannot be read or altered by eavesdroppers. It works by combining public-key cryptography with a trusted third-party signature that verifies the certificate belongs to the site's owner.
Step by step
- The website owner creates a public-private key pair and keeps the private key secret.
- The owner sends a certificate signing request with the public key and domain name to a certificate authority.
- The authority verifies the owner's control of the domain and signs the certificate with its own private key.
- The browser receives the certificate, checks the authority's signature using a pre-installed public key, and confirms the domain matches.
- The server proves it holds the matching private key, and the two sides agree on a shared session key.
- All further communication is encrypted with the session key, protecting data from eavesdroppers.
Key things to understand
- A website owner generates a key pair: a public key shared openly and a private key kept secret.
- The owner sends the public key and domain details to a certificate authority (CA) for validation.
- The CA verifies domain ownership and signs the certificate with its own private key.
- The browser checks the CA's signature using the CA's public key, which is pre-installed in the browser or operating system.
- Once trusted, the server proves it holds the matching private key, and both sides agree on a shared session key that encrypts all traffic.
Labelled diagram
- Key pair
Website owner generates a public key and a secret private key.
- CA validation
Certificate authority checks that the owner controls the domain.
- Certificate issued
CA signs the certificate with its own private key.
- Browser check
Browser verifies the CA's signature using a trusted public key.
- Secure session
Browser and server agree on a shared key for encryption.
Real-world examples
- When you visit your bank's website, the SSL certificate ensures your login details are encrypted and the site is genuine.
- Online retailers like Amazon use SSL certificates to protect credit card information during checkout.
- Google's Gmail uses SSL/TLS to encrypt emails between your browser and its servers.
- A small blog can get a free SSL certificate from Let's Encrypt, making HTTPS available to everyone.
Common mistake
✗ Myth: An SSL certificate makes a website completely secure and trustworthy.
✓ Fact: An SSL certificate only proves that the connection is encrypted and that the site's domain matches the certificate. It does not guarantee the website's content is safe or that the business is honest. A phishing site can also have a valid certificate.
People also ask
What is an SSL certificate?
How does SSL encryption work?
Why do SSL certificates expire?
What is the difference between HTTP and HTTPS?
How does my browser know which certificate authorities to trust?
Can an SSL certificate be forged or stolen?
Do SSL certificates expire? Why?
Part of the guide: How the Internet Works →

