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


#1

I have installed the ssl certificate using lego client on AWS lightsail bitnami instance. But when I start the server I receive the error SSLCertificateFile: file '/opt/bitnami/apache2/conf/server.crt' does not exist or is empty.

I checked the files exists in the directory. Although I changed the owner to root.

Let me know what I can do in this situation.


#2

I found the error. It was an error in configuration of the ssl.

I forgot the change the command
sudo ln -s /etc/lego/certificates/DOMAIN.key /opt/bitnami/apache2/conf/server.key
with the right domain name.

Everything works fine after that.


#3

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