How to Secure AWS Lightsail with Let’s Encrypt SSL Using Bitnami’s bncert-tool

by Muhammad in AWS Hosting, Compliance, Data Security, GDPR, How To on November 7, 2023

Securing an AWS Lightsail instance with HTTPS is a critical step after pointing the application to its domain. The process may differ slightly from that on an EC2 instance, but the simplicity of Bitnami’s bncert-tool streamlines the SSL installation.

Step 1: Connect Lightsail Terminal

Click on “Connect with SSH” button under Connect Tab on your lightsail instance details section to connect with terminal.

Step 2: Starting with bncert-tool

Begin by running the command:

				
					sudo /opt/bitnami/bncert-tool
				
			

If the tool is not present, proceed to install it before moving to the next step.

Installing bncert-tool

Execute the following commands to install bncert-tool:

				
					wget -O bncert-linux-x64.run https://downloads.bitnami.com/files/bncert/latest/bncert-linux-x64.run
sudo mkdir /opt/bitnami/bncert
sudo mv bncert-linux-x64.run /opt/bitnami/bncert/
sudo chmod +x /opt/bitnami/bncert/bncert-linux-x64.run
sudo ln -s /opt/bitnami/bncert/bncert-linux-x64.run /opt/bitnami/bncert-tool

				
			

Step 3: Domain Input

Input the domains requiring SSL certificates, including both www and non-www versions.

Step 4: Domain Redirection

Decide on the preferred redirection—typically from non-www to www—and confirm.

Steps 5: Completing the Setup

Enter the requested email address, agree to the terms and conditions, and let the tool finalize the SSL setup.

After these steps, the website should display a secure connection, indicated by a green padlock in the browser’s address bar.

By following this guide, users can efficiently secure their AWS Lightsail instances, ensuring enhanced security and credibility for their websites.

Share Your Valuable Opinions

Cart (0)

  • Your cart is empty.
WP Feedback

Dive straight into the feedback!
Login below and you can start commenting using your own user instantly