
The certificates issued by Let’s Encrypt are only valid for 90 days after they are created. To do this we need to run the following commands as the “bitnami” user from the server SSH console to renew the certificate before it expires. Remember to replace “DOMAIN” with your actual domain name and “EMAIL-ADDRESS” with your email address.
1. Login to your server using SSH
2. Stop the Apache Server
sudo /opt/bitnami/ctlscript.sh stop
3. Renew the Certificate
sudo /opt/bitnami/letsencrypt/lego --tls --email="EMAIL-ADDRESS" --domains="DOMAIN" --path="/opt/bitnami/letsencrypt" renew --days 90
4. Start Apache Server
sudo /opt/bitnami/ctlscript.sh start
The Let’s Encrypt certificate is now renewed.