Question

Remove Domain from certificate - certbot

When running the command certbot certificate

I get this result

Certificate Name: effstaging.net Domains: etffstaging.net bern.etffstaging.net bernst.etffstaging.net bernsteiaaax.com

I need to remove bernst.etffstaging.net bernsteiaaax.com from the certificate because we no longer mange those domains. How is this done?


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 there @austinCoral,

What you need to do is to issue a new certificate for the domain names that should be part of the certificate:

sudo certbot --nginx -d example.com -d www.example.com

Hope that this helps! Regards, Bobby

I went to this folder: cd /etc/letsencrypt/renewal/

Then used sudo rm to remove the conf files of the old domains.

Seems to have worked, will see in 12 hours. :D