Меню Затваряне

How To Secure Apache with Let’s Encrypt

Step 1 — Install the Server Dependencies

We will need git in order to download the Let’s Encrypt client. To install git, run:

Step 2 — Download the Let’s Encrypt Client

Step 3 — Set Up the SSL Certificate

Access the letsencrypt directory:

To execute the interactive installation and obtain a certificate that covers only a single domain, run theletsencrypt-auto command with:

When the installation is finished, you should be able to find the generated certificate files at/etc/letsencrypt/live. You can verify the status of your SSL certificate with the following link (don’t forget to replace example.com with your base domain):

Step 4 — Set Up Auto Renewal

Let’s edit the crontab to create a new job that will run the renewal command every week. To edit the crontab for the root user, run:


Вашият коментар