Let’s Encrypt

Install Certbot

$ sudo apt install certbot python3-certbot-apache

Add a Certification

$ sudo certbot --apache -d www.lama-lab.mydns.jp

Renew Certbot

Make a script to renew the certification.

$ sudo vi /etc/cron.daily/certbot-renew

In the certbot-renew script, you should write like that.

#!/bin/sh
certbot renew --post-hook "systemctl reload apache2"

Then you must change the permission.

$ sudo chmod 755 /etc/cron.daily/certbot-renew

Last Updated on July 12, 2021 by lama-admin


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *