- ssl
- lets-encrypt
- dns
"Let's Encrypt is free, so it's not for serious projects. For a wildcard certificate we have to pay."
Is a free certificate weaker than a paid one? How to get a wildcard certificate for free, and how DNS-01 validation works even for servers that are not exposed to the internet.
If there is a system administrator who still says this, this post is for them.
The idea is very widespread. Many companies pay for a certificate every year, while their internal panels open with a "Not secure" warning for years. The reason is simple: many people don't know how a free certificate works and what you can do with it.
Let's go through it step by step.
Does a free certificate protect less?
No. The key point to understand here: the strength of encryption does not depend on the price of the certificate.
When a site opens, the browser and the server agree on an encryption method between themselves. That method is determined by the server settings and the browser, not by who issued the certificate. A Let's Encrypt certificate uses the same key types as paid certificates (RSA 2048, ECDSA). As a result, the traffic is protected just as well.
Let's Encrypt is trusted by all modern browsers and operating systems. Today a very large share of the sites on the internet run on its certificates, including the sites of large companies.
So what does the money buy with a paid certificate?
There are three types of certificate:
- DV (Domain Validation): only the fact that the domain belongs to you is checked. This is exactly the type Let's Encrypt issues. A paid DV certificate checks the same thing, just for money.
- OV (Organization Validation): besides the domain, the company itself is checked: registration, address, documents.
- EV (Extended Validation): the company is checked more extensively.
In other words, you pay for the company verification, not for the encryption. If a tender, a bank or a contract requires an OV/EV certificate, you need to buy one. In every other case DV is enough, and DV is free.
One more fact worth noting: the argument "a paid certificate lasts a year, a free one 90 days" no longer holds either. Since March 2026 the maximum lifetime of all certificates has been reduced to 200 days. From March 2027 the limit will be 100 days, and from March 2029 it will be 47 days. So a paid certificate also has to be renewed often. Automating this instead of doing it by hand is no longer an option, it is a necessity.
A wildcard certificate is free too
A wildcard certificate is written as *.sizin-domen.az and covers all subdomains at once: mail., panel., api., test. and any other. You don't need a separate certificate for each subdomain.
Let's Encrypt has issued wildcard certificates for free since 2018. There is one condition: domain validation must be done with the DNS-01 method.
How does the issuer check that the domain is yours?
Before issuing a certificate, Let's Encrypt has to be sure that you really control the domain. There are two main ways to do this.
HTTP-01. Let's Encrypt says: "place a file with this content at this address on your server". Then it comes from the internet to that address and checks the file. For this method:
- the server must be reachable from the internet;
- port 80 must be open;
- you cannot get a wildcard certificate.
DNS-01. Let's Encrypt says: "create a TXT record with this name and this value in your domain's DNS". Then it checks the DNS. If the record is there, you control the domain and the certificate is issued.
A simple analogy explains the difference. HTTP-01 is like a courier coming to your house and knocking on the door: the house has to be visible from the street and the door has to open. DNS-01 is like writing an entry in an official register: the inspector never comes to the house, looks at the register, and that is enough.
The real power of DNS-01
With DNS-01 validation the server plays no role at all. Only the DNS is checked. This means that:
- you can get a wildcard certificate;
- you can get a certificate for a server that is not exposed to the internet. An internal Proxmox, a firewall panel, a monitoring system, any web interface inside the company;
- you don't need to open a single port. Not port 80, not port 443, nothing.
It is this last point that many people don't know. For internal systems people either generate a self-signed certificate and click through the "Not secure" warning in the browser every time, or they pay. Yet even if mail.sizin-domen.az points to an internal IP, you can get a fully trusted, free certificate for it with DNS-01.
How to do it by hand
To see the process, let's do it once by hand. Install certbot on a Linux server:
sudo apt install certbotWildcard certificate request:
sudo certbot certonly --manual --preferred-challenges dns \
-d "sizin-domen.az" -d "*.sizin-domen.az"Certbot will show you something like this:
Please deploy a DNS TXT record under the name:
_acme-challenge.sizin-domen.az
with the following value:
gfj9Xq...Rg85nMLog in to your domain's DNS panel and create a TXT record with this name and this value. Check in another terminal that the record has propagated:
dig +short TXT _acme-challenge.sizin-domen.azCertbot will ask for two values in a row under the same name: one for the domain itself and one for the wildcard. Add both as separate TXT records and do not delete the first one.
Once the value shows up, go back to certbot and press Enter. A few seconds later the certificate is ready:
/etc/letsencrypt/live/sizin-domen.az/fullchain.pem
/etc/letsencrypt/live/sizin-domen.az/privkey.pemThese two files are your wildcard certificate. For free.
So where's the catch?
The manual method has one big drawback: when the certificate expires, you have to do everything again. A new TXT record, a new value, Enter again. As certificate lifetimes get shorter, this will have to be repeated often, and a forgotten certificate will take the site down at the worst possible moment.
Yet you can set this up once and forget about it completely. The program that obtains the certificate connects to your DNS provider through its API on its own, creates the TXT record itself, deletes it after validation and renews the certificate before it expires. You won't even notice.
There is little for you to do. In the service where you manage your DNS, you create one API key and give it a single permission: changing the DNS records of that domain. You hand the key to the program that obtains the certificate once, and it does the rest on its own.
Keep two things in mind. This key can change your domain's DNS, so protect it like a password and keep its permission as narrow as possible. Also, not every DNS service has an API. If yours does not, the domain registration stays where it is, and you move only the DNS management to a service that has one.
That is exactly what we set up in the next post: fully automatic wildcard certificates for all your internal and external services with Caddy and Nginx Proxy Manager. Set up once, it runs for years.
In short
- A Let's Encrypt certificate is as trustworthy as a paid DV certificate. The encryption is the same.
- You pay for company verification (OV/EV), not for encryption.
- A wildcard certificate is free, it just requires DNS-01 validation.
- With DNS-01, internal servers that are not exposed to the internet can also get a certificate without opening any ports.
- You can do it by hand, but the right way is automation. More on that in the next post.
At JezaHost, when you attach a domain to a VPS, the SSL certificate is issued automatically and renews itself. At no extra cost.