Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall/remove Certbot Let's Encrypt from Debian 8

I just followed the instuctions found on : https://certbot.eff.org/#debianjessie-apache to install let's encrypt certificate on my linux vps.

but unfortunately, installation did not went as I expected because :

  • A. I already had an instance of apache2 installed - which conflicted with apache instance certbot installer installs.
  • B. I have a dynamic dns I want to have as my domain name and add ssl for, but let's encrypt system seems to have problem with free dns providers.

so I finally decided to removed certbot and instead try to install local ssl certificate I sign my self personally. I can't find direct un-installation guide for certbot. can you please help ?

Thank You

like image 244
Rami Ibrahim Avatar asked May 24 '17 10:05

Rami Ibrahim


People also ask

How do I remove lets encrypt Certbot?

Delete a Let's Encrypt SSL Certificate Just type the index number of the domain name, that you want to delete and hit enter. The issued certificate including other associated files will be deleted. You can also specify the domain name with the certbot command as below.


1 Answers

Alright, I think I found out how to do it :

first I removed certbot using these commands :

sudo apt-get purge certbotapt
sudo apt-get purge python-certbot-apache -t jessie-backports
sudo apt-get purge apache2

then I manually removed files/folders in following :

  • /myuser/certbot-auto
  • /myuser/.local/share/letsencrypt/
  • /etc/letsencrypt/
  • /var/lib/letsencrypt/
  • /var/log/letsencrypt/

then I installed a new fresh instance of apache2 :

sudo apt-get install apache2
sudo service apache2 restart

Now things are back to where I was, and I can work on installing personal/local ssl for my project.

Hope this help you too ;)

like image 175
Rami Ibrahim Avatar answered Sep 25 '22 00:09

Rami Ibrahim