db ревизій цього gist 5 days ago. До ревизії
1 file changed, 4 insertions, 1 deletion
install_certbot_dnsimple_plugin.sh
| @@ -13,4 +13,7 @@ ln -s /opt/certbot/bin/certbot /usr/local/bin/certbot | |||
| 13 | 13 | echo "0 0,12 * * * root /opt/certbot/bin/python \ | |
| 14 | 14 | -c 'import random; import time; time.sleep(random.random() * 3600)' \ | |
| 15 | 15 | && sudo certbot renew -q" \ | |
| 16 | - | | sudo tee -a /etc/crontab > /dev/null | |
| 16 | + | | sudo tee -a /etc/crontab > /dev/null | |
| 17 | + | ||
| 18 | + | # To generate certificate: | |
| 19 | + | # /opt/certbot/bin/certbot --dns-dnsimple-credentials /etc/letsencrypt/dnsimple.ini --dns-dnsimple certonly -d <hostname>.danbee.in | |
db ревизій цього gist 5 days ago. До ревизії
1 file changed, 16 insertions
install_certbot_dnsimple_plugin.sh(файл створено)
| @@ -0,0 +1,16 @@ | |||
| 1 | + | #!/bin/sh | |
| 2 | + | ||
| 3 | + | apt install python3 python3-dev python3-venv libaugeas-dev gcc | |
| 4 | + | ||
| 5 | + | python3 -m venv /opt/certbot/ | |
| 6 | + | /opt/certbot/bin/pip install --upgrade pip | |
| 7 | + | /opt/certbot/bin/pip install certbot certbot-nginx | |
| 8 | + | ||
| 9 | + | ln -s /opt/certbot/bin/certbot /usr/local/bin/certbot | |
| 10 | + | ||
| 11 | + | /opt/certbot/bin/pip install certbot-dns-dnsimple | |
| 12 | + | ||
| 13 | + | echo "0 0,12 * * * root /opt/certbot/bin/python \ | |
| 14 | + | -c 'import random; import time; time.sleep(random.random() * 3600)' \ | |
| 15 | + | && sudo certbot renew -q" \ | |
| 16 | + | | sudo tee -a /etc/crontab > /dev/null | |