I have VPS1 running domain.com. Using virtualmin I created a let’s encrypt ssl certificate that is renewed automatically every x months and all is good.
Now I want to migrate domain.com to VPS2 (different IP). At first, domain.com will still run on VPS1. After I will finish the setup, I want to switch domain.com to VPS2, for that I will change A record in my domain’s registrar to point to VPS2/new IP.
At what point should I handle lets encrypt?
Can I do that only after the switch or can I setup something before, so switching will be seamless?
VPS1 will be shut down and closed after switching to VPS2.