It used to be a bonus, a sign of a high level of technological sophistication and of care for the security of users and their data. Today it is practically a mandatory component of every website, and few people can imagine browsing, let alone entering personal data or buying something online, without the familiar padlock next to the address. What is more, browsers themselves make it considerably harder to open "plain" websites, rightly warning the user that something is wrong and that the person has to take the risk on themselves.
What exactly are SSL certificates, why were they introduced and what types are there? Do they cost a fortune, or can you get them for free? We will try to cover all of this today and summarize the most important information for ordinary internet users, as well as for website owners who still get a bit lost in these topics.
What is an SSL certificate for and how does it relate to HTTPS?
You surely know that website addresses can start with the "http" protocol, but also with "https". The "s" in the second case stands for "secure" and means browsing the web over an encrypted, secure channel. For the owner of a website, portal or system to offer such a version, they have to obtain and install something called an SSL certificate (Secure Socket Layer). In a nutshell, SSL is a method (in fact, yet another network protocol) that, when connecting to a browser, establishes encryption keys (used by cryptographic algorithms). They make the communication secure and tell the user that the site is safe and who it "really" is. Most often this happens through the padlock icon displayed right next to the address.
(You may also come across the abbreviation TLS (Transport Layer Security), which is nothing other than the successor of SSL and often appears in the recommendations of cybersecurity auditors when they check a given website (or rather the server it runs on).)
Of course, as usual, the whole process is more complicated. SSL is not used only for websites, and the reassuring security indicator does not mean at all that using a given site is free of all risks. Exploring that topic further is not the goal of this article, because it is material for entire books written by people who deal mainly with cybersecurity. Although we will touch on the last point (whether a site is actually safe) today.
But what does it actually mean that a user is on an encrypted protocol, and how does running a site over HTTPS help?
- data sent between the user's computer and the server hosting the website is encrypted, which means that intercepting it along the way will not help an attacker much. They will see a jumble of unreadable information that cannot be read without a specific, unique key, which the user's browser and the server agreed on during the first connection. This way you can send sensitive data without worrying that someone will catch and read it on the way.
- Google clearly ranks sites higher when they use HTTPS, and has done so for quite a while. You could even say that, to Google, sites "without the padlock" are second-class sites.
- from a purely human point of view, an address that starts with "https" is viewed more favorably by users, among whom knowing how to recognize a "secure" site is by now quite widespread. For this reason an online store that has not encrypted its communication can have serious trouble even reaching potential customers, let alone persuading them to buy. People simply do not trust sites without "https" in the address.
- the user can verify our identity and check that the site they are browsing has not been swapped in place of the right one. This point has a rather big catch, and we will get to it a little later.
It is worth mentioning that HTTPS is now so widespread and so heavily promoted that browsers practically panic when warning about "unsafe" sites. In addition, HTTP servers can enable the HSTS header, which makes it easier for the browser to automatically upgrade HTTP to HTTPS (whether that version will work, however, depends on the state of the SSL certificate). Finally, programmers and server administrators must remember that the encrypted version of a website makes HTTP servers use a different port (443) than the unencrypted version (the popular 80).
Paid and free SSL certificates
This raises the question of how to get such an SSL certificate. First, it helps to realize that these are properly generated files placed on the server, which are used when the user connects to the site. At this point reactions can vary, from "generating such files is probably hard" to "I'll do it myself, hold my apple juice". In short, we very quickly arrive at the question of price, which we already touched on in the article about HTTP requests. Now it is time to expand on that.
It is possible to generate a certificate yourself with suitable, freely available software. In this way anyone has the opportunity to prepare keys, "sign" them and place them on the server. But even laypeople probably have doubts about this approach. If anyone can generate such a certificate, including a dishonest person, then the value of such a certificate is zero. That is why you will not find them on the web, and web browsers will most likely sound the alarm before you enter such a site.
That is why many people buy SSL certificates from verified providers (tied to so-called certificate authorities, CAs for short), which are recognized and have the right authorizations and security clauses. When you buy such a product, you can be sure it was generated according to best practice (for example, the algorithm used to create the keys had the right degree of randomness), you get a warranty on it, and the certificate itself is valid for a set period (most often 1 year). Unfortunately, this service costs money, although fortunately not an exorbitant amount: for most companies it falls in the range of 100-200 zł per year. Hosting providers often act as intermediaries for this kind of service as well, which is understandable, since the certificate has to be installed on the server and that is then up to the administrators.
However, many people will rightly point out that verified certificates that are free exist. Indeed, that service is called Let's Encrypt, and it is run by a nonprofit organization founded with the participation of many companies (including really big ones such as the Mozilla Foundation and Cisco Systems). Its goal was to popularize certificates and let less wealthy site creators generate them too. It has done this brilliantly: according to official LE data, such a certificate is installed on 300 million websites. However, if something is free, it probably has some drawbacks as well, and that is the case here, although they do not really concern the quality of the protection itself. Certificates generated through LE are issued only for a specific domain (DV) and, which matters to many people, only for 90 days. After that we have to remember to renew them ourselves, although with the Certbot tool you can usually set up automatic renewal.
With Let's Encrypt you need to make sure it is possible at all to generate such a certificate and install it. That is possible on your own servers where you have root rights (so-called root VPSs) and with some hosting providers that offer it in a convenient way (for example MyDevil.Net). However, most hosting companies prefer to resell paid certificates, which is hardly surprising: it is also an IT service, and services cost money.
An internet user can tell which certificate a given site uses. In Google Chrome, just click the padlock, choose "Connection is secure" and then "Certificate is valid". Let us take our own site as an example:
We can clearly see that the certificate (DV) was issued by Let's Encrypt, also known as R3 (from RSA intermediate), and that it is indeed valid for 90 days. We can also see which domain the data was generated for. As I mentioned, there is nothing wrong with LE, and it is entirely sufficient for company websites, blogs or even smaller stores. Now let us look at what is displayed for the advanced Twitter client TweetDeck.
Here we can already see an OV certificate generated for a specific subdomain, the full name of the organization and the issuing company. In this case we can conclude that the attestation comes from a paid, verified provider, and it is valid for over a year. But this is not the highest level. Banks and various financial, legal and government institutions usually use the most extensive form of certificates, namely EV. In this case the confirmation of the entity operating the given keys is visible even before you open the detailed information (in older versions of Chrome it was shown right next to the address). Here is an example for Santander Bank Polska S.A.:
Along the way we used the abbreviations DV, OV and EV. It is time to explain them.
Types of certificates
We have already covered where certificates come from, but to keep things from being too simple, they also come in different types and validation levels.
First of all, and this matters when buying them, certificates can be issued for a single domain or for a whole package of domains with their subdomains. The latter are called wildcard certificates and let you obtain protection for a domain and its subdomains in one go, for example:
- domena.pl
- api.domena.pl
- innasubdomena.domena.pl
Such a wildcard certificate is very often written as issued for *.domena.pl. More popular, however, are certificates for a single domain, which are issued for one specific address.
I have already hinted that certificates differ in their level of validation. As we have shown, generating a certificate is not particularly difficult, but for certain institutions (especially those we hand our money or sensitive personal data to), the user has to be sure that the site they are on really belongs to the right entity. After all, a fraudster can create a "padlock" for themselves and a site that looks exactly like a particular bank, but the information attached to the certificate should unambiguously reveal the truth. So what validation levels do we have?
- Domain Validation (DV): the simplest type, which only verifies the domain, that is, checks whether the person generating the certificate really controls it. Let's Encrypt works this way, based on data found in DNS records.
- Full Organization Validation (OV): this type verifies the organization, not just the domain. So it is not enough to show that you control a given address. You also have to contact the certifying body and confirm the information about the company you represent (matching the data in official registers).
- Extended Validation (EV): this type of validation is intended especially for institutions with a high degree of trust, where the certifying authority checks a lot of information at various levels.
You can find more information in an article by the hosting company cyber_Folks.
Which certificate do I need?
If you run a blog, a company showcase site, a small store or a local portal and have the right technical means, then Let's Encrypt is enough. By "the right technical means" I mean being able to manage the certificate on the server, mainly through the command line or a special panel provided by the hosting company. Internal systems also most often use such "protection", purely so that browsers do not raise objections.
If, however, you are expanding your business (for example, to the global market), running a very popular portal or a venture that processes confidential data, it is worth considering a paid certificate. Contrary to appearances, it is not that expensive (if you do not need the highest validation level), and it is simply necessary to be credible in the eyes of users and win customers. People whose hosting provider does not let them upload SSL certificates themselves also have to choose this option, although fortunately it can usually be done through the server owner.
You can read a bit more about this in an article on dhosting.pl.
How do I generate a Let's Encrypt certificate?
We will not go into details here, because you will find them on the Certbot website for the individual environments (both Windows and Linux). We just want to share a few remarks on how to prepare.
First of all, make sure you can use Let's Encrypt at all. For that you need the right permissions and console access on the server (of course, if the hosting provider offers a panel for this, things get much simpler). Then check whether your server is reachable from the public internet. This is needed for the standard verification method: when you request a certificate, the Let's Encrypt server checks that you actually control the domain (in short, it "pings" your server). If the machine is hidden in an internal network or behind a VPN, other verification methods are available, for example setting a suitable record in the domain's DNS.
Once the certificate has been generated, it is saved in a specific place on the server as several files, so you then need to add the appropriate entries to the configuration files of your HTTP server, Apache2 or NGINX. Certbot can help here too, adding its own rules automatically. The last step is restarting your HTTP server (not the whole machine!). In addition, if the server is publicly reachable, you can also enable automatic renewal of the certificate.
Summary
I hope I have managed to gather a pill of information about SSL certificates, something that has become very common and is no longer a curiosity or a mark of technological sophistication. All of us care about security online and about being seen as safe and trustworthy. So make sure your portals and the places you manage in cyberspace have that famous "padlock" next to the address.
Best regards and thank you, Jakub Rojek.


