Question

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

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.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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