Let's Encrypt - A Right Way in 2020

Today I'm going to share a neat way to set up your let's encrypt (up-to-date way in 2020).
First off, we will have to get the script using this command:

1wget https://dl.eff.org/certbot-auto

Then enable the script to run globally as we expect using this commands:

1chmod +x certbot-auto
2mv certbot-auto certbot
3echo $PATH
4mv certbot /usr/sbin/    # In case of Ubuntu Bionic or Focal
5certbot --version


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:

1server {
3  listen 80 default_server;
4  return 444;

Then disable it like so:

1mv ip-guard.conf ip-guard.conf.bak
2nginx -s reload

Yay, your certbot should be working for sure! 😎
Happy securing!

comments powered by Disqus