Setting up a Domain with SSL Certificate on AWS Lightsail

Get Private Key from the provider, save it as .key.

Or create it using openssl

The SSL needs to be a wildcard SSL which pricier than the standard ones. The price varies based on the encryption level.
Get crt and pem files from the provider.
Get keychain file from the provider, also .crt file.

Place them somewhere safe (/etc/…)

In Node.js, use https module and reference the key and crt files from /opt/bitnami/apache2/conf/bitnami/bitnami-ssl.conf

when creating a server. This will secure your port 3000.

import https;
if () {


For the front end, find the ssl.conf file in httpd (if apache)
Make sure the fields in that file also points to the same keys
(crt, .key, keychain files)

possibly, restart the httpd server

Leave a Reply

Your email address will not be published.