- Newest
- Most votes
- Most comments
bn-cert will foul up the server configuration so bad it will have to be restored -- it happened to me! Make sure you have a good snapshot to go back to before running it.
The issue you're experiencing is related to how the Bitnami SSL installation tool interacts with WordPress Multisite configurations on Lightsail. When you use the bncert-tool to install SSL for additional domains in a WordPress Multisite setup, it can inadvertently modify the primary domain configuration.
To resolve this issue and properly manage SSL for multiple domains in your WordPress Multisite instance, you should follow these steps:
-
First, revert the changes made by the SSL tool by manually editing the
/opt/bitnami/apache/conf/httpd.conffile to restoreprimarydomain.comas the primary domain. -
Instead of using the
bncert-toolfor each additional domain, you should configure SSL for all your domains at once. Use thebncert-toolwith multiple domain names separated by spaces:
sudo /opt/bitnami/bncert-tool --domains "primarydomain.com secondarydomain1.com"
This approach will configure SSL for all specified domains without altering the primary domain setting.
-
After configuring SSL, you may need to update your WordPress Multisite configuration to recognize the additional domains. This typically involves editing the WordPress configuration file and updating DNS records.
-
Remember to update your DNS records for each domain to point to your Lightsail instance's IP address.
-
If you add more domains in the future, you'll need to run the
bncert-toolcommand again with all domains included.
By following these steps, you should be able to maintain the correct primary domain configuration while still securing all your WordPress Multisite domains with SSL certificates. If you continue to experience issues, you may need to consult Bitnami's documentation or reach out to AWS Lightsail support for further assistance.
Sources
Define the primary domain for your WordPress Multisite instance on Lightsail - Amazon Lightsail
Troubleshooting WordPress setup failures in Lightsail - Amazon Lightsail
Set up WordPress Multisite on Lightsail - Amazon Lightsail
Manage multiple WordPress sites with Multisite on Lightsail - Amazon Lightsail
Relevant content
- asked 2 years ago

This did not work for me, in that the options (if you have already enabled this for a domain before adding another) are y/N to revoke the domain certificate. If you say "N" it tells you the domain list is invalid. When I tried "y" eventually it said I did not have permissions to revoke the certificate