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:

 

Leave a Reply

Вашият имейл адрес няма да бъде публикуван. Задължителните полета са отбелязани с *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">