Let's Encrypt Automation - A Right Way in 2021
Install Certbot
Install snapd.
Remove old version of certbot:
sudo apt-get remove certbot
# or
sudo dnf remove certbotInstall certbot:
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbotRun it!
sudo certbot --nginxCaution!
In case you have an IP access blocking config in nginx, you need to disable it, temporarily at least.
For example, imagine you have this nginx block for IP access blocking:
Then disable it like so:
Yay, your certbot should be working now! 😎
Happy securing!