SSL & Apache & Wordpress & certbot

Hi, I have a wordpress website on a dropplet (openLiteSpeed wordpress 1-click) I had to renew the ssl certificate but I managed to do some dumb things.

The “sudo certbot renew --dry-run” does’nt work (failed authorisation procedure) and “sudo certbot --apache -d -d” makes an error too.

So I figured the simple way out of this mess is to reset the dropplet and start fresh with a new stock install. But I dont want to lose my wordpress website.

What’s the best way to fix this situation ? I have copied the html folder from /var/ from the dropplet. Can I easily copy paste it to a new dropplet ? What about the database ? and all the extensions, pages and database ?

Oh, and I procrastinated this problem, now my website shows an error (ssl certificate outdated) but it is in production so… not very nice for my customers… That’s why I need a quick way to fix it.


Show comments

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.


Note that in order for Let’s Encrypt to be able to validate your domain name and issue an SSL certificate, your domain name needs to be pointing to the server IP that you are trying to issue the SSL certificate from. Then if your DNS is setup correctly in 99% of the cases certbot works fine.

In case that you’ve sorted out your DNS and you are still unable to get the SSL issued, you could provide the exact error that you are getting here and I could then advise you further.

Regards, Bobby