How an SSL certificate works
When you open a website over https, the browser and the server first agree on encryption. Everything they send each other afterwards (a completed form, a password, a delivery address) is unreadable to anyone who might be eavesdropping on the connection. The certificate also confirms that you really are connecting to the domain in your address bar and not to someone pretending to be it.
The more accurate name today is TLS certificate, because the original SSL protocol is no longer used. In everyday speech, though, the name SSL has stuck.
Types of certificate
Most websites and online shops are fine with a free Let's Encrypt certificate, which almost every hosting provider now offers. The encryption is just as strong as with a paid one. Paid certificates with company validation make more sense for banks or large institutions that also need to prove the organisation's identity.
Why it matters
- Trust. Browsers mark a site without https as “Not secure”. Few people will then fill in a form or enter their details in an order.
- A requirement for personal data. If the website collects names, email addresses or postal addresses, an encrypted connection is part of protecting them adequately under GDPR.
- Payment gateways and services. Without https you can't connect card payments or many other services.
- Google. It treats https as one of the signals when ranking a website.
Example
A small building firm has an older website where nobody ever set up a certificate. Chrome warns on the contact form that the data is not protected, and enquiries only come in by phone. Once the certificate is switched on at the hosting provider and all addresses are redirected from http to https, the warning disappears and people start using the form.
Most common mistakes
- The certificate expires. Free certificates are valid for 90 days and the hosting provider usually renews them automatically. When renewal fails, the site suddenly shows a warning that puts visitors off.
- Mixed content. The page runs on https, but some images or scripts load over http. The browser then won't show the padlock.
- Missing redirect. The website works on both addresses at once. The http version should be permanently redirected to https with a 301 redirect.
A certificate is tied to a domain and set up on the hosting. I check its validity and the redirects on every site as part of website maintenance. When migrating a website to new hosting, the certificate has to be issued again, otherwise the browser shows a warning.