An SSL connection encrypts the information you send to a website so that only you and that website can read it
SSL stands for Secure Sockets Layer. When you visit a website with an SSL connection, your browser and the website's server create an encrypted tunnel between them. Everything you type — passwords, credit card numbers, search queries, form data — travels through that tunnel in a form that hackers on the same network cannot read, even if they intercept it.
You can tell a site uses SSL by looking at the address bar. The URL starts with https:// instead of http://, and most browsers show a small padlock icon next to the address. That padlock means the connection is encrypted and the website's identity has been verified by a trusted third party.
Without SSL, your data travels in plain text. If you log into your email on an unencrypted connection at a coffee shop, someone on that same Wi-Fi network could capture your password. With SSL, they see only gibberish.
Key Takeaways
- SSL encrypts data between your browser and a website so that only you and the website can read what you send.
- You can identify an SSL connection by the https:// in the address bar and a padlock icon in your browser.
- SSL verifies that the website you are visiting is actually who it claims to be, not a fake site impersonating it.
- Most websites now use SSL by default, and browsers warn you when a site lacks encryption or has an invalid certificate.
How SSL encryption actually works
SSL uses two types of encryption working together. First, your browser and the website exchange public keys — information that is safe to share openly. These keys are used to set up a private conversation channel. Then both sides create a shared secret key that only they know, and all your actual data gets encrypted with that secret key for the rest of the session.
This happens automatically in milliseconds. You do not have to do anything. The moment you land on an https:// site, your browser and the server are already negotiating the encryption. If something goes wrong — if the certificate is expired or fake — your browser stops the connection and shows you a warning before any data is sent.
The encryption is so strong that even if someone recorded every byte of data flowing between you and the website, they could not decode it without the secret key. That key is destroyed when you close the connection, so it cannot be reused later.
The difference between http and https
The only difference in the URL is that one letter: the "s" in https stands for "secure." An http connection sends everything in plain text. An https connection encrypts it. Both protocols do the same job of moving data back and forth — https just wraps that data in a locked box first.
Browsers now treat http sites as unsafe. If you try to enter a password on an http site, most modern browsers will show a warning or block it entirely. Many sites automatically redirect you from http to https when you visit them, so you may not even notice the change.
Some older or very simple websites still use http, but any site that handles passwords, payments, or personal information should use https. If it does not, that is a red flag that the site is either outdated or not trustworthy.
What an SSL certificate is and where it comes from
An SSL certificate is a digital document that proves a website is who it claims to be. It is issued by a certificate authority — an independent organization that verifies the website's identity before handing out the certificate. Major certificate authorities include DigiCert, Let's Encrypt, Comodo, and Sectigo.
When you visit an https site, your browser checks the certificate to confirm three things: that the certificate is real and not forged, that it has not expired, and that it matches the website you are trying to visit. If any of those checks fail, your browser shows a warning and refuses to load the page.
Website owners have to pay for SSL certificates, though prices vary widely. Let's Encrypt offers free certificates to encourage encryption everywhere. Other authorities charge anywhere from a few dollars to hundreds of dollars per year, often based on how much verification they do or what features the certificate includes.
Why websites use SSL even when you are not entering sensitive data
You might think SSL only matters when you are logging in or paying for something. In reality, even browsing and reading can leak information worth protecting. Your internet service provider, your network administrator, or someone on your Wi-Fi can see which websites you visit and how long you stay on each page — unless the connection is encrypted.
SSL hides that browsing history from everyone except you and the website. It also prevents someone from injecting ads or malware into the pages you are viewing. An attacker on an unencrypted connection can modify what you see in real time, but they cannot do that through an SSL tunnel.
This is why major websites like Google, Facebook, and news sites all use SSL by default, even for pages where you are just reading. It is considered a basic security standard now, not just something for banks and shopping sites.
What happens when an SSL certificate is invalid or expired
If a website's SSL certificate has expired, is self-signed (issued by the website itself instead of a trusted authority), or does not match the website's domain, your browser will show a warning. The exact warning depends on your browser, but it usually says something like "Your connection is not private" or "This site's security certificate is not trusted."
You can usually click through the warning and visit the site anyway, but you should not enter any sensitive information. The encryption is still technically happening, but you have no proof that the website is actually who it claims to be. You could be sending your password to a fake site that looks identical to the real one.
Website owners who see these warnings should contact their certificate authority to renew or fix the certificate. It is usually a simple process that takes a few minutes, but some sites neglect it, which is a sign of poor maintenance.
SSL on public Wi-Fi and why it matters
Public Wi-Fi networks — at airports, coffee shops, libraries — are common places where unencrypted data gets intercepted. Anyone on that network can use free tools to capture passwords and credit card numbers from unencrypted connections.
SSL protects you on public Wi-Fi, but only for websites that use it. If you check your bank account on an https site at a coffee shop, your login is safe. If you log into an http site, it is not. This is why it is important to check for that padlock icon before entering passwords anywhere, especially on shared networks.
A VPN (virtual private network) adds another layer of encryption on top of SSL, hiding even which websites you visit from your internet provider. But SSL alone is enough to keep your passwords and data safe from other people on the same Wi-Fi network.
Frequently Asked Questions
Does SSL protect me from viruses or malware?
No. SSL only encrypts the connection between you and the website. It does not scan files for viruses or protect your computer from malicious software. A website can be fully encrypted with a valid SSL certificate and still host malware. You need antivirus software and safe browsing habits for that protection.
Can hackers break SSL encryption?
Breaking modern SSL encryption would take thousands of years with current technology. Hackers do not try to break it. Instead, they trick you into visiting a fake website with its own SSL certificate, or they steal passwords through phishing. SSL protects the connection, but it cannot protect you from your own mistakes.
Why do some sites show a warning even though they have https?
The most common reason is that the SSL certificate has expired. Websites have to renew their certificates every one to three years. Other reasons include the certificate being issued for a different domain, or the certificate authority not being recognized by your browser. These are usually signs the website needs maintenance.
Do I need to do anything to use SSL?
No. SSL works automatically when you visit an https site. Your browser handles all the encryption and verification behind the scenes. You just need to look for the padlock icon and https:// in the address bar to confirm the connection is secure before entering sensitive information.