SOLUTION: How to create SSL certificates to Domain and Subdomain at the same moment - Bitnami - Amazon Lightsail


#1

Generate and Install - Let’s Encrypt SSL Certificates For Bitnami - Amazon Lightsail - Domain with www, and without. Domain + Subdomain. SOLUTION:

Follow the instructions:
https://docs.bitnami.com/vmware/how-to/generate-install-lets-encrypt-ssl/

IMPORTANT: At Step 2: Generate A Let’s Encrypt Certificate For Your Domain, to Request a new certificate for your domain and subdomain (for example: www.amigo.com, and amigo.com) you must write as below:

sudo lego --email=“EMAIL-ADDRESS” --domains=“amigo.com” --domains=“www.amigo.com” --path="/etc/lego" run


I have decided to write this because the most common thing when a person is going to enter a website is that one writes the domain with the www., or without the www. And the code taught in the Bitnami Guide does not teach that possibility. When you configure your website with a single domain, the browser accuses a certificate error, because one of the domains don’t have certificate.

For original comments/code read: https://community.bitnami.com/t/adding-subdomain-to-ssl-certificate/56354


#2

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.