🔐
blog.cat.ssl

The ACME Protocol Explained: How SSL Certificates Are Issued Automatically

24.11.2026
← All articles

Most websites today use free SSL certificates that renew without anyone touching them. Behind that is ACME, the Automatic Certificate Management Environment, published as RFC 8555 in 2019. Let's Encrypt was among the first to use it at scale, and many other certificate authorities now support it. As certificate lifetimes shrink, understanding ACME helps you diagnose problems quickly.

What ACME solves

Before issuing a certificate, a CA must confirm that the requester really controls the domain. This used to involve email confirmations, manual file uploads and many steps in a web account. ACME turns it into a precise machine-to-machine exchange: a client on your server talks to the CA over HTTPS, proves control of the domain and downloads the certificate.

  1. The client creates an account key and registers with the CA; every later request is signed with it.
  2. It places an order listing the names, for example example.uz and www.example.uz.
  3. The CA returns a challenge for each name.
  4. The client completes the challenge and tells the CA, which then verifies it.
  5. The client submits a CSR, the CA issues the certificate and the client downloads it.

The private key never leaves your server; only the public key and the list of names are sent.

Challenge types

HTTP-01 is the most common. The client places a token at a fixed path and the CA fetches it over port 80:

http://example.uz/.well-known/acme-challenge/<token>

The domain must point to the issuing server and port 80 must be reachable. A redirect rule that sends everything elsewhere, or an .htaccess rule blocking the folder, will make it fail. Wildcard certificates cannot be issued with HTTP-01.

DNS-01 asks the client to publish a TXT record, which is the only way to get a wildcard such as *.example.uz and works even for sites not yet online:

_acme-challenge.example.uz.  TXT  "value-derived-from-token"

Automating it requires API access to your DNS provider. TLS-ALPN-01 validates over port 443 with a special TLS handshake and is mostly used by servers and proxies that manage TLS themselves.

In practice: Certbot and acme.sh

sudo certbot certonly --webroot -w /var/www/example.uz -d example.uz -d www.example.uz
acme.sh --issue -d example.uz -d www.example.uz -w /var/www/example.uz

While testing, use the staging environment (--test-cert in Certbot) so you do not hit production rate limits. On shared hosting the panel does all of this; on sayt.uz hosting Let's Encrypt certificates are obtained and renewed through ACME automatically.

When issuance fails

A clinic in Samarkand moved its site to a new server and the certificate stopped renewing. The A record had been updated, but www still pointed to the old IP, so the CA looked for the token on the wrong server. These checks catch most cases:

dig +short example.uz A
dig +short www.example.uz A
curl -I http://example.uz/.well-known/acme-challenge/test
dig +short example.uz CAA

Both names should resolve to the same server. A 404 from the challenge path is normal, but a connection error or redirect to another site is not. If a CAA record exists and authorises only a different CA, Let's Encrypt will refuse to issue; with no CAA record, any CA may issue.

Renewal and what comes next

ACME clients renew well before expiry, and newer ones support ARI, an extension that lets the CA suggest when to renew, which is especially useful during mass revocations. As lifetimes keep shrinking, ACME is becoming an essential part of running any site. If your certificate is not renewing, open a ticket in the sayt.uz cabinet with the domain and the results of the checks above.

Related articles

🔒 How to Fix Mixed Content in WordPress: A Step-by-Step Guide 🔍 Free Tools to Check Your SSL Certificate: From Browser to Terminal 💻 SSL for local development: trusted HTTPS with mkcert 🔄 The End of OCSP and the Return to CRLs: What Site Owners Should Know
🌐 Language
🇺🇿 O⁠'zbek 🇺🇿 Özbek (yangi) 🇺🇿 Ўзбек 🇷🇺 Русский 🇬🇧 English ✓