I've cloned a rackspace cloud server and put it into a load balancer, whilst removing the original server. The site seems to respond fine but then I have a problem with the SSL certificate, as I'm getting an error message on https pages. The error logs say the common name is different from the server name, which I can understand.
When I do this process again, could I simply name the cloned cloud server the same as the original server or would this create problems? I'd eventually remove the original completely when everything is working fine.
Or could I name the clone server something else, but update the /etc/hosts and /etc/hostnames files to the same name as the original server? Would this be all that's required?
The domain name itself won't change.