It seems you ran the Bitnami HTTPS configuration tool to configure new domains in your site. If you modify your site's domain, the certificates won't probably work.
The bnconfig file was renamed when using the HTTPS configuration tool to avoid configuring the application with a different domain. If you need to run it, you can use this command instead
sudo /opt/bitnami/apps/moodle/bnconfig.disabled --machine_hostname YOURNEWDOMAIN
Happy to help!
Was my answer helpful? Click on