Check that the certificates are in
And visit your website with
https:// It should show as secured.
To update it automatically you need to add it as a cronjob.
First create a script that stops the server, executes the renew command and then restarts the server:
sudo nano /opt/bitnami/letsencrypt/scripts/renew-certificate.sh
And add the following content:
sudo /opt/bitnami/ctlscript.sh stop
sudo lego --tls --email="EMAIL-ADDRESS" --domains="DOMAIN" --path="/opt/bitnami/letsencrypt" renew
sudo /opt/bitnami/ctlscript.sh start
Give the script execute permissions:
sudo chmod 755 /opt/bitnami/letsencrypt/scripts/renew-certificate.sh
Run the script to check that it works:
Then open crontab with the following command:
And add the following line:
0 0 1 * * /opt/bitnami/letsencrypt/scripts/renew-certificate.sh 2> /dev/null
Save and close crontab.
Please, click on if you think my answer was helpful