Renew Let's Encrypt Certificate on NGINX
sudo systemctl stop nginx
sudo letsencrypt certonly -a standalone
# Input your domain e.g. canary.id
sudo systemctl start nginx
Renew Let's Encrypt Certificate on Apache2
sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y
DOMAIN=$1
certbot --authenticator webroot --installer apache --domains $DOMAIN