# SSL certificates

An SSL certificate encrypts the traffic between the site and the browser, and the site opens with `https://`. The panel gets a free **Let’s Encrypt** certificate in one click and renews it before it expires.

![SSL certificates](https://wiki.livepanel.uz/img/ssl.png)

## Getting a certificate

1. The domain (and the `www` alias) must **point to this server’s IP address**. DNS changes take from minutes to a few hours to spread.
2. Open the **SSL certificates** tile on the site page.
3. Click **New certificate**.
4. Choose the site and the type:
   - **Let’s Encrypt** — trusted, free, 90 days; the panel renews it.
   - **Self-signed** — encrypts the traffic, but browsers warn. For test sites whose domain does not point here yet.
5. **Email** is optional: Let’s Encrypt writes there about expiry problems.
6. Turn on **Redirect all HTTP requests to HTTPS**.
7. Confirm. The certificate is installed in a few seconds.

The certificate covers the site’s domain and all its aliases.

## The certificate list

The table shows the site, type, validity and the HTTPS redirect. The row menu has:

- **Reissue** — get the certificate again (e.g. after adding an alias);
- turning the **HTTPS redirect** on or off;
- **Remove certificate** — the site works over HTTP only.

## Automatic renewal

Let’s Encrypt certificates renew by themselves before they expire. If a certificate has less than 14 days left and did not renew, the panel emails the site owner and the administrator.

## If the certificate is not issued

- **The domain points elsewhere** — check the A record: `nslookup example.uz`.
- **Port 80 is closed** — Let’s Encrypt checks over port 80. The firewall must keep the HTTP rule — [Firewall](https://wiki.livepanel.uz/en/firewall.md).
- **Cloudflare proxy (orange cloud)** is on — turn it off for a moment, or set Cloudflare’s SSL mode to “Full”.
- **Too many attempts** — Let’s Encrypt limits attempts per domain; try again in an hour.

SSL for the panel itself — [Panel address and SSL](https://wiki.livepanel.uz/en/panel-access.md).
