If you want to install https security (SSL or TSL) on AWS Lightsail, I found that Bitnami has a tool that makes it very easy. The tool Bncert is found here:
https://docs.bitnami.com/aws/how-to/understand-bncert/
I had been working with a Udemy course on how to install websites on Amazon Web Services Lightsail. While the course started okay, it turns out that Amazon has changed its structure somewhat since the course was recorded, so that the folders and links are no longer where they are described in the course.
I tried to adjust for the new directory structure, the installation process would not work. However, bncert worked easily and quickly.