Changing domain name associated with the server
I have a working LAMP server that I used to set up a new website.
The server has a temporary domain pointing to it (e.g. acme-test.com) and I'm using Let's Encrypt to provide SSL.
Now that everything is set up and working, I'm ready to point the actual domain (e.g. acme.com) to that server.
To do that I will change the DNS records with the registrar to point to DO and set up the appropriate settings under Networking->Domains.
How do I go about changing the SSL on the LAMP instance itself? Can I just run: certbot --apache -d acme.com -d www.acme.com and it will take care of it all, or will there be problems because a different domain was set up previously?
I'm hesitant to just test this out because I want to have minimal downtime during the switch so I figured I'd ask the community.
Thanks in advance!