Make sure DNS is configured properly and then use Change Hostname feature.
Example:
Server1 = 123.0.0.4
vps1.mydomain.com = 123.0.0.4
MyDomain.com = 123.0.0.4
Make sure your DNS is configured correctly (
vps1.mydomain.com -> 123.0.0.4 and
mydomain.com -> 123.0.0.4)
For best results, also configure reverse DNS for your server IP (
123.0.0.4 -> vps1.mydomain.com)
Now change hostname. This will update your SSL certificate from self-signed to "official" Let's Encrypt.
Note: you do not need to make the hostname different, you can keep the same hostname.. if your hostname is already "vps1.mydomain.com" you can still use "vps1.mydomain.com" again)
- Log in to Server1 CWP via https://123.0.0.4:2087/
- Use Server Settings - Change Hostname
- Set New Hostname = vps1.mydomain.com
- Set Key Size = 4096
- Set checkmark for all boxes
- Click Change Hostname
Now you can access https://vps1.mydomain.com without errors