-
Install certbot
apt update && apt install certbot
-
Make sure http (80) is open on the machine
-
Run
sudo certbot certonly --standalone
and follow the assistant -
Create script
/usr/local/bin/certbot-renew.sh
with the following content:#!/bin/bash FQDN="filewave.example.com" /bin/certbot renew cp -uf /etc/letsencrypt/live/${FQDN}/fullchain.pem /usr/local/filewave/certs/server.crt cp -uf /etc/letsencrypt/live/${FQDN}/privkey.pem /usr/local/filewave/certs/server.key yes | /usr/local/filewave/python/bin/python /usr/local/filewave/django/manage.pyc update_dep_profile_certs /usr/local/bin/fwcontrol server restart exit 0
-
Make script excutable with
sudo chmod +x /usr/local/bin/certbot-renew.sh
-
Run script for testing
/usr/local/bin/certbot-renew.sh
-
Add new job to
/etc/crontab
:0 5 * * 6 root /usr/local/bin/certbot-renew.sh
[via]https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-debian-11[/via]
[via]https://www.reviewmynotes.com/2022/10/filewave-and-lets-encrypt.html[/via]