Go to file
2024-03-16 10:48:10 +01:00
ci Check upstream image every 6h. 2024-03-16 10:48:10 +01:00
etc/periodic Fix cron. 2021-03-15 20:22:21 +01:00
.dockerignore Add ci. 2022-03-10 15:54:41 +01:00
certbot-auth Shellcheck found some false positives in the printf hints. 2024-01-16 18:12:37 +01:00
certbot-cleanup Shellcheck found some false positives in the printf hints. 2024-01-16 18:12:37 +01:00
certbot-duckdns Remove deprecate --manual-public-ip-logging-ok flag. 2023-10-28 01:50:45 +02:00
Dockerfile Add Volume for /etc/letsencrypt. 2022-03-10 16:12:13 +01:00
duckdns Shellcheck found some false positives in the printf hints. 2024-01-16 18:12:37 +01:00
README.md Add env variable to specify propagation delay. 2024-01-16 18:09:32 +01:00
start-certbot-duckdns.sh Fix cron. 2021-03-15 20:22:21 +01:00

Certbot with duckdns wildcard certificate

Just run it with the correct environment variables and enjoy.

Because of a limitation on duckdns it is not possible to request a certificate which works for both the domain and wildcard subdomains. Because of this we request 2 certificates, one for the domain and one wildcard cert.

Example:

docker run --rm \
    -e DUCKDNS_DOMAIN=redxef \
    -e DUCKDNS_TOKEN=<your ddns token> \
    -e LE_EMAIL=noreply@example.com \
    redxef/certbot-duckdns

DUCKDNS_DOMAIN=redxef

Yields 2 certificates, the first being for redxef.duckdns.org and the second being for *.redxef.duckdns.org. These certificates can be found under the following locations respectively:

  • /etc/letsencrypt/live/redxef.duckdns.org/
  • /etc/letsencrypt/live/redxef.duckdns.org-0001/

ENV Variables

  • DUCKDNS_DOMAIN: The domain to update, ex: DUCKDNS_DOMAIN=redxef for redxef.duckdns.org
  • DUCKDNS_TOKEN: Your duckdns api token
  • DUCKDNS_PROPAGATION_DELAY: Wait this many seconds after the TXT record was updated
  • LE_EMAIL: Your email for certificate related notifications

SOURCE

gitea.redxef.at/redxef/certbot-duckdns