#!/bin/sh apt install python3 python3-dev python3-venv libaugeas-dev gcc python3 -m venv /opt/certbot/ /opt/certbot/bin/pip install --upgrade pip /opt/certbot/bin/pip install certbot certbot-nginx ln -s /opt/certbot/bin/certbot /usr/local/bin/certbot /opt/certbot/bin/pip install certbot-dns-dnsimple echo "0 0,12 * * * root /opt/certbot/bin/python \ -c 'import random; import time; time.sleep(random.random() * 3600)' \ && sudo certbot renew -q" \ | sudo tee -a /etc/crontab > /dev/null # To generate certificate: # /opt/certbot/bin/certbot --dns-dnsimple-credentials /etc/letsencrypt/dnsimple.ini --dns-dnsimple certonly -d .danbee.in