Changing IP address of a virtual server which already has an active ssl

17 posts / 0 new
Last post
#1 Thu, 12/07/2017 - 10:43
awpt.eu

Changing IP address of a virtual server which already has an active ssl

Hi, I phurcased and activated a new IP than I changed on a virtual server using the change IP address tab in virtualmin but the site already has ssl using the share IP address of the server. So now when I paste the domain name in browser I get the insecure messagge, than I switched back to the shared IP but I would like to add the new IP address. The new dedicated IP is active and working Im having a dedicated server from ovh the only problem here is ssl.

To do this job should I phurcase a new ssl certificate or there is any trick that I can do?

Thu, 12/07/2017 - 11:42
awpt.eu

as I see when I change the vistual server IP from Change IP Address Section its showing ssl of another virtualserver So I have 4 virtualserver and a comodo ssl for each one with one shared ip at all, when I change the IP of domain x its automaticaly showing the ssl of the domain y and the error messagge says that page is insecure because this certificate is valid only for domain y so something that I cannot understand.

Thankyou.

Sat, 12/09/2017 - 11:55
awpt.eu

Im doing anything wrong here? I never get a response this is not the first time. However thankyou.

Mon, 12/11/2017 - 03:39
noisemarine

Did you update the DNS for that website to the new IP address?

Mon, 12/11/2017 - 03:42
awpt.eu

I changed it on virtual server > change IP address and nothing else is there any other step to do?

Mon, 12/11/2017 - 03:46
awpt.eu

first of all I added a new virtual interfacewatching this video https://www.youtube.com/watch?v=sGRXHSObr2s as eth0:0 than after the boot the IP came activated than I added in change ip address tab of the virtual server and it worked but the only problem is the ssl when I change it the ssl not working any more if there other steps to do please let me know thankyou for our reply.

Mon, 12/11/2017 - 03:47
noisemarine

Does Virtualmin manage the DNS for that site, or somewhere else? Have you checked that the site resolves to the new IP?

Mon, 12/11/2017 - 03:49
awpt.eu

when I ping the domain name I see the old IP but when I type the domain name on browser its working without ssl when I switch back to the old IP address in that tab it works with ssl again so with the shared ip its working

Mon, 12/11/2017 - 03:52
noisemarine

Update your DNS record for that site. Afterward, you'll have to wait a while for the old cached record to expire (how long depends on your DNS settings). That should fix your problem.

Mon, 12/11/2017 - 03:56
awpt.eu

you mean virtual server > server configuration > DNS records? Im sorry noisemarine this is the first time and I never worked with additional IPs Should I point the IP adress on one of the nameservers or domain (Virtual Server > Server Configuration > Change IP Address)? I did correct or should I go on any other tab to finish the process?

Mon, 12/11/2017 - 04:03
noisemarine

Yes, go into DNS Records, presuming that your Virtualmin server handles DNS for that site. You should edit any records that have the old IP address.

Mon, 12/11/2017 - 04:10
awpt.eu

Thankyou noisemarine I changed all fields where have the old IP to the new IP but on the top I have an error with the red text Warning - errors were found in this domain's DNS records : The DNS record domain.com. resolves to the IP address xxx.xx.xx.xx instead of the virtual server's IP xxx.xx.xx.xx

Now Im afraid to restart httpd because it will fail Im sure. However thankyou.

Mon, 12/11/2017 - 04:28
noisemarine

Does Virtualmin-> domain.com -> Edit Virtual Server have the right IP address?

Mon, 12/11/2017 - 04:30
awpt.eu

Yes sure its the first step that I did and when I paste the new IP address on browser It sends me to the domain but with a wrong ssl instead of its own ssl certificate

its showing ssl of another virtual server on the same machine and the domain is not valid than site is insecured thats all why Im so crazy here.

Mon, 12/11/2017 - 04:38
awpt.eu

edit virtual server > showing: IP addresses newIP, ipv6:: (OLDIP externally)

Mon, 12/11/2017 - 04:42
awpt.eu

Disabled IPv6 and external IP in change IP Address Section and now dns records saved successfully with the new IP address now I will wait because still getting insecured error on domain.

Mon, 12/11/2017 - 05:11
noisemarine

The Default Cache Time at the top of the DNS zone should give you an idea of how long you have to wait (in seconds). Anyone that hasn't looked up your site before should see things properly straight away.

Topic locked