How do I install an SSL certificate on a Bitnami stack hosted on Amazon Lightsail?

Last updated: 2020-12-17

How do I install an SSL certificate on a Bitnami stack hosted on Amazon Lightsail?

Short description

You can generate a free Let's Encrypt SSL certificate using the Lego client. For more information on Let's Encrypt and the Lego client, see the Let's Encrypt client and ACME library on the GitHub website.

Resolution

Create a Lightsail instance

1.    Open the Lightsail console, and then select Create instance.

2.    Choose Linux for the platform, choose WordPress for the blueprint, and then choose Create instance.

3.    Create a static IP address, and then attach it to the instance. In the following example, 192.0.2.0 is the static IP address.

4.    Create an Address (A) record and point it from the domain to the IP.

5.    Run a DNS lookup with the host command to confirm that the domain is mapped to the static IP:

$ host example.ie
example.ie has address 192.0.2.0

Run the Bitnami HTTPS Configuration Tool

The Bitnami HTTPS Configuration Tool is included in the /opt/bitnami/letsencrypt/directory on Bitnami stacks released after May 10th, 2019. The tool automatically performs the following procedures:

  • Configures HTTPS certificates on Bitnami stacks
  • Creates automatic certificate renewals
  • Sets up HTTP to HTTPS redirections

Run the following command to launch the Bitnami HTTPS Configuration Tool:

sudo /opt/bitnami/bncert-tool

For more information on using or downloading the HTTPS Configuration Tool, see Learn About The Bitnami HTTPS Configuration Tool on the Bitnami documentation website.


Did this article help?


Do you need billing or technical support?