Install SSL certs on webserver running Nginx

  1. SSH into the server running your HTTP website as a user with sudo privileges.
  2. Make sure system packaged certbot is not installed:
    • sudo apt-get remove certbot
  3. Install python and other deps:
    • sudo apt update
    • sudo apt install python3 python3-venv libaugeas0
  4. Install certobot:
    • sudo /opt/certbot/bin/pip install certbot certbot-nginx
  5. Run certbot:
    • sudo certbot --nginx
  6. Follow the instructions.