Setting up a Free SSL LetsEncrypt Certificate for Lightsail and renewing/updating

Hello everyone in this quick tutorial we wanted to take you through how to setup a free ssl certificate with LetsEncrypt.

First please follow our Lightsail tutorial here

Step One: SSH into your instance and run.

sudo su
wget -O
mkdir /opt/bitnami/bncert
mv /opt/bitnami/bncert/
chmod +x /opt/bitnami/bncert/
ln -s /opt/bitnami/bncert/ /opt/bitnami/bncert-tool

No we can run the tool!


Here are some option we set yours maybe different.

Enable HTTP to HTTPS redirection [Y/n]: y 
Enable non-www to www redirection [Y/n]: n
Enable www to non-www redirection [y/N]: y
Changes to perform

The following changes will be performed to your Bitnami installation:

1. Stop web server
2. Configure web server to use an existing Let's Encrypt certificate and renew: 
3. Configure a cron job to automatically renew the certificate each month
4. Configure web server name to:
5. Enable HTTP to HTTPS redirection (example: redirect to
6. Enable www to non-www redirection (example: redirect to
7. Start web server once all changes have been performed

Create a free HTTPS certificate with Let's Encrypt

Please provide a valid e-mail address for which to associate your Let's Encrypt 

Domain list:

Server name:

E-mail address []:

The Let's Encrypt Subscriber Agreement can be found at:

Do you agree to the Let's Encrypt Subscriber Agreement? [Y/n]: y

The Bitnami HTTPS Configuration Tool succeeded in modifying your installation.

The configuration report is shown below.

Backup files:
* /opt/bitnami/apache2/conf/httpd.conf.back.201912152319
* /opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf.back.201912152319
* /opt/bitnami/apache2/conf/bitnami/bitnami.conf.back.201912152319

Find more details in the log file:


If you find any issues, please check Bitnami Support forums at:

Manually Updating Renewing Existing Certificate

Just run the command again you will see the following output and you can run through the processes again.

Warning: A certificate for the list of domains you entered already exists. It 
will be used instead of generating a new one.
Press [Enter] to continue:

Remove WordPress banner on Lightsail

sudo /opt/bitnami/apps/wordpress/bnconfig --disable_banner 1