> ## Documentation Index
> Fetch the complete documentation index at: https://docs.minestorecms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Receiving SSL Certificate

> Learn how to receive SSL for your domain using Lets Encrypt.

<Warning>
  If you are using Cloudflare, you need to set the SSL mode to **Full** in your Cloudflare account.
</Warning>

## **How to receive SSL?**

You can receive a **free SSL certificate** for your domain by using **Let's Encrypt** or **Cloudflare**. Follow the steps below to get an SSL certificate for your domain:

1. **Certbot:** You most likely have **Certbot** installed on your server. If not, you can install it by using the following command:

```bash theme={null}
sudo apt update
sudo apt install certbot python3-certbot-nginx -y
```

2. **Run Certbot:** After installing Certbot, you can run it by using the following command:

```bash theme={null}
sudo certbot --nginx
```

3. **Follow the instructions:** Certbot will ask you a few questions, such as your email address and domain name. Make sure to enter the correct information.
4. **Select the domain:** Certbot will automatically detect your domain name and ask you to select it. Make sure to select the correct domain name.
5. **Select the SSL option:** Certbot will ask you if you want to redirect HTTP traffic to HTTPS. Select the option to **redirect HTTP traffic to HTTPS**.
6. **Wait for the process to complete:** Certbot will automatically generate and install the SSL certificate for your domain. This process may take a few minutes.
7. **Check the SSL certificate:** After the process is complete, you can check if the SSL certificate is installed correctly by visiting your domain in a web browser. You should see a padlock icon in the address bar, indicating that the connection is secure.

<Warning>
  If the SSL certificate installed but you still see the **Not Secure** message in your browser, you need to clear your browser cache and cookies by using **CTRL + SHIFT + R** or **CTRL + F5**.
</Warning>

## **How to renew SSL?**

You can renew the SSL certificate by using the following command:

```bash theme={null}
sudo certbot renew
```
