I think the cause of the issue is the following:
sudo openssl genrsa -out /opt/bitnami/apache2/conf/server.key 2048
It is problable that the file has the wrong permissions. Could you check that the permissions are the following?
-rw-r--r-- 1 bitnami root 1675 Sep 15 08:45 server.key
You can use the following commands:
sudo chmod 644 /opt/bitnami/apache2/conf/server.key
sudo chown bitnami:root /opt/bitnami/apache2/conf/server.key
If that does not solve the issue, it is highly likely that, as you changed the
server.key file, you may also need to change the
server.crt file, as now the key is different.
Javier J. Salmerón
Was my answer helpful? Click on