Newbie - setting up SSL on lightsail

My domain is:

I ran this command: I followed this tutorial

It produced this output:

SSLCertificateFile: file '/opt/bitnami/apache2/conf/server.crt' does not exist
or is empty

My web server is (include version):

Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-1118-aws x86_64)
___ _ _ _
| _ |) | _ _ __ _ _ __ ()
| _ \ | | ' / ` | ' | |

*** Welcome to the Bitnami MEAN 4.2.3-0 ***
*** Documentation: ***
*** ***
*** Bitnami Forums: ***

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is: AWS - Lightsail

I can login to a root shell on my machine (yes or no, or I don't know): Yes I can

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): NO

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): 0.31.

Bitnami is a very different setup than normal setups, I would not recommend the Amazon guide at all.

I think (but I don't have any experience) it's better to use the internal Bitnami client and use their how-to: However, looking at the error message you're getting, it might already be "too late", as it signals your Apache configuration is already broken somehow.

Also, do you actually need a wildcard certificate? Because using this manual process, you'd need to repeat it every two months. It's better to use an automated approach and if you can't automate the DNS challenge, you might want to use a non-wildcard certificate with the http-01 challenge, which is easier automatable.

1 Like

Hi Osiris - I think you might be correct on the Broken Apache config - I am pretty sure I have a very simple setup with no changes to the default setting - IS there an easy way to reset Apache or do I need to reinstall it?

I haven't got a clue, especially ad I have zero experience with Bitnami/Lightsail.

1 Like

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