Question

How to set up let's encrypt after moving website to new server

Posted March 2, 2020 203 views
Let's Encrypt

So, I moved a website already using https with Let’s Encrypt to a new server, but the new server is not loading the pages because it’s https, which isn’t setup yet. My questions now is how to set up Let’s Encrypt while the old website still running in the old server, and then switch to new server.

Can I simple run the certbot –apache command and start over with the new server? even though the ssl may not be up for renewal?

What would be the easiest way?

I’m using Ubuntu 18.04 with apache 2.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi @mhweb,

To install Let’s Encrypt on your new server, you’ll need to actually point the domain to the droplet. It’s just that Let’s Encrypt does not allow installation of a certificate for a domain not pointing from the droplet that’s making the request. It will simply fail.

If you wish to use a free SSL like Let’s Encrypt you’ll need to point your website to the new droplet and wait for the DNS to propagate and then make the Let’s Encrypt request. That’s it, it’s simple as that and the DNS propagation nowadays is quite quick so you should need to actually wait long.

The second option would be to acquire a paid SSL certificate and when it’s issued by the provider to install it manually on your droplet.

Regards,
KDSys

Submit an Answer