This repository conatins everything needed to create and renew LetsEncrypt certificates (incl. wildcard certificates) on Dynu
Find a file
2020-01-25 10:55:51 +01:00
certbot The base image doesn't contains bash, your bash script won't work 2020-01-23 22:47:07 +01:00
scripts get domainID from CERTBOT_DOMAIN variable 2019-12-18 21:02:23 +01:00
docker-compose.yml Remove logging, because it's not needed. 2019-07-28 14:56:04 +02:00
LICENSE Initial commit 2019-07-28 14:50:37 +02:00
README.md Update README.md 2019-07-28 14:54:52 +02:00

This repository conatins everything needed to create and renew LetsEncrypt certificates (incl. wildcard certificates) on Dynu (https://www.dynu.com/). This should work on every machine that can run docker (I'm using it on a QNAP NAS). If you already have certbot installed you can also just use the scripts in the scripts folder, without docker.

Usage with docker-compose:

You will need Docker and Docker-Compose:

https://docs.docker.com/install/ https://docs.docker.com/compose/install/

docker-compose -f <PATH_TO_FILES>/certbot/docker-compose.yml up

Cronjob to run it twice daily (like recomended by Certbot, certificates are only renewed when needed):

0 0,12 * * * python -c 'import random; import time; time.sleep(random.random() * 3600)' && docker-compose -f <PATH_TO_FILES>/certbot/docker-compose.yml up

Usage with locally installed certbot:

Required packages: certbot, jq, curl

certbot certonly --manual-public-ip-logging-ok --non-interactive --agree-tos --email <PUT_YOUR_EMAIL_HERE> --manual --preferred-challenges=dns --manual-auth-hook <PATH_TO_FILES>/script-pre.sh --manual-cleanup-hook <PATH_TO_FILES>/script-post.sh -d YOURDOMAIN.TLD -d *.YOURDOMAIN.TLD