Complete guide – LetsEncrypt Certbot SSL for Ubuntu

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
  • For Apache
    sudo apt-get install certbot python-certbot-apache
    sudo certbot --apache -d appnewton.com -d www.appnewton.com
  • For NGInx
    sudo apt-get install certbot python-certbot-nginx
    sudo certbot --nginx -d appnewton.com -d www.appnewton.com
  • Setup Auto-renewal
env EDITOR=nano crontab -e

15 3 * * * /usr/bin/certbot renew --quiet
  • Remove Certificate
    sudo certbot delete --cert-name appnewton.com

Leave a Reply

Your email address will not be published. Required fields are marked *