letsencrypt commands logs Archives - Anuj Varma, Hands-On Technology Architect, Clean Air Activist https://www.anujvarma.com/tag/letsencrypt-commands-logs/ Production Grade Technical Solutions | Data Encryption and Public Cloud Expert Wed, 17 Jan 2024 03:28:48 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 https://www.anujvarma.com/wp-content/uploads/anujtech.png letsencrypt commands logs Archives - Anuj Varma, Hands-On Technology Architect, Clean Air Activist https://www.anujvarma.com/tag/letsencrypt-commands-logs/ 32 32 Troubleshooting letsencrypt and certbot https://www.anujvarma.com/troubleshooting-letsencrypt-and-certbot/ https://www.anujvarma.com/troubleshooting-letsencrypt-and-certbot/#comments Thu, 30 Jan 2020 20:31:06 +0000 https://www.anujvarma.com/?p=6509 On Linux – once installed, look for certbot using ls -l /bin /usr/bin | grep certbot OR just grep certbot If you get a result, you should see the certbot […]

The post Troubleshooting letsencrypt and certbot appeared first on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.

]]>
On Linux – once installed, look for certbot using

ls -l /bin /usr/bin | grep certbot
OR just
grep certbot

If you get a result, you should see the certbot binary returned by the grep command. Now we know that certbot was successfully installed.

To check if your certificate was correctly created using certbot, use

sudo certbot certificates // lists all certificates

If you DO NOT see your certificate, your next stop is to look for letencrypt logs . The letsencrypt logs are here
/var/log/letsencrypt/logs/

You are not allowed access to the log files under here. The only way that I could view these logs (in entirety, not just tail…) is to dmesg from the parent folder (note – ignore the time stamped log files – just the main letsencrypt.log is important):

sudo dmesg letsencrypt/letsencrypt.log

Removing letsencrypt log files and certbot from a linux system

Remove Log Files

sudo rm -rf /etc/letsencrypt/
sudo rm -rf /var/lib/letsencrypt/
sudo rm -rf /var/log/letsencrypt/

Remove certbot executable, runtime and configfile 

sudo certbot delete
sudo apt purge python-certbot-apache
sudo a2dissite 000-default-le-ssl.conf

Update repo

sudo apt update
sudo apt upgrade
sudo apt autoremove


Summary

This is quick cheat sheet of common tasks around certbot on linux.

The post Troubleshooting letsencrypt and certbot appeared first on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.

]]>
https://www.anujvarma.com/troubleshooting-letsencrypt-and-certbot/feed/ 1