How can I remove/disable letsencrypt on Apache Ubuntu 16.04 server?

Posted September 16, 2016 61.3k views
UbuntuApacheLet's Encrypt

I followed the DigitalOcean tutorial on installing Let’s Encrypt available here: but now I would like to completely remove it from my server as I am having issues with form submissions over SSL.

How can I completely remove Let’s Encrypt?

Thank you.

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.

Submit an Answer
4 answers

Hi, you can disable like this:

a2dissite 000-default-le-ssl.conf


service apache2 reload

Hope it helps.

You would need to modify your apache configuration files to remove your https entry and any reference to your certificate files. Letsencrypt is installed under /opt/letsencrypt when following our tutorials so you can also remove that directory to delete the letsencrypt tools.

  • I’ve successfully removed all Let’s Encrypt files but now my site does not load. It still has the https in it. I cleared my browser cache but apparently is not that.

    • Did you already opened your apache config file e.g yoursite.conf and removed the rewrite rule? then delete the symlink in site-enabled for your-site-ssl-____conf?

      • Can you give a step by step on how to do this? Thank you.

        • @angelovillasant. You’ll normally find the rewrite rule section inside you configuration file e.g mysite.conf. A line like this:

          RewriteEngine on
          RewriteCond %{SERVER_NAME} [OR]
          RewriteCond %{SERVER_NAME}
          RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]

          Remove this line from this file. And also remove the file called mysite-le-ssl.conf then it should be okay.

  1. This command blow offers an index from which you can select the domain name to delete:

sudo certbot delete

Then type the index number of the domain name’s certificate you wanna delete and press enter

  1. If the domain name does not appear in the index, type the command below:

sudo certbot delete –cert-name

Thank you. This worked for me