This article covers installing a standard Let’s Encrypt SSL certificate (not a wildcard) for websites hosted in a Lightsail instance with a Bitnami stack. Examples of these instance blueprints include WordPress, LAMP, Magento, and MEAN. If you have a different instance blueprint or want to install a wildcard certificate, see one of the following:
Standard Let’s Encrypt certificates
For information on installing a standard Let’s Encrypt certificate on a Lightsail instance that doesn’t use a Bitnami stack, see How do I install a standard Let’s Encrypt SSL certificate in a Lightsail instance?
Wildcard Let’s Encrypt certificates (for example, *.example.com)
For information on installing a wildcard Let’s Encrypt certificate in a Lightsail instance with a Bitnami stack, see How do I install a wildcard Let’s Encrypt SSL certificate in a Bitnami stack hosted on Amazon Lightsail?
For information on installing a wildcard Let’s Encrypt certificate in a Lightsail instance that doesn’t use a Bitnami stack, see How do I install a wildcard Let’s Encrypt SSL certificate in Amazon Lightsail?
Resolution
Bitnami provides their own HTTPS configuration tool, bncert-tool, for installing standard Let’s Encrypt certificates. Bitnami stacks released after May 10, 2019 include bncert-tool by default.
The bncert-tool 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
reference:
https://aws.amazon.com/premiumsupport/knowledge-center/linux-lightsail-ssl-bitnami/