I have to migrate a website that already has an SSL certificate Let`s Encrypt. I am wondering if I can migrate the certificate when I have not yet changed the DNS to point to the new server.
I would work on the new server modifying my hosts file.
Is it possible to have the same let’s encrypt certificate for a domain on two different servers?
Ok, Do you know if the scenario I propose will work?
Migrate my website to another server and modify my hosts to point the IP of the new server.
So I can only work and when I have everything ready to change the DNS permanently
Should work, yes. Certificates are only “linked” to the hostnames they contain. Not to an IP address or server. And it doesn’t matter if a certificate is duplicated.