Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Commit 43d12b9

Browse files
authored
Merge pull request #356 from mattti/adding-certbot-dns-inwx
Adding certbot-dns-inwx
2 parents 535dcee + f1a9b60 commit 43d12b9

File tree

7 files changed

+16
-3
lines changed

7 files changed

+16
-3
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ RUN \
8787
certbot-dns-dnsimple \
8888
certbot-dns-dnsmadeeasy \
8989
certbot-dns-google \
90+
certbot-dns-inwx \
9091
certbot-dns-luadns \
9192
certbot-dns-nsone \
9293
certbot-dns-ovh \

Dockerfile.aarch64

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ RUN \
8787
certbot-dns-dnsimple \
8888
certbot-dns-dnsmadeeasy \
8989
certbot-dns-google \
90+
certbot-dns-inwx \
9091
certbot-dns-luadns \
9192
certbot-dns-nsone \
9293
certbot-dns-ovh \

Dockerfile.armhf

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ RUN \
8787
certbot-dns-dnsimple \
8888
certbot-dns-dnsmadeeasy \
8989
certbot-dns-google \
90+
certbot-dns-inwx \
9091
certbot-dns-luadns \
9192
certbot-dns-nsone \
9293
certbot-dns-ovh \

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Container images are configured using parameters passed at runtime (such as thos
121121
| `-e URL=yourdomain.url` | Top url you have control over (`customdomain.com` if you own it, or `customsubdomain.ddnsprovider.com` if dynamic dns). |
122122
| `-e SUBDOMAINS=www,` | Subdomains you'd like the cert to cover (comma separated, no spaces) ie. `www,ftp,cloud`. For a wildcard cert, set this _exactly_ to `wildcard` (wildcard cert is available via `dns` and `duckdns` validation only) |
123123
| `-e VALIDATION=http` | Letsencrypt validation method to use, options are `http`, `tls-sni`, `dns` or `duckdns` (`dns` method also requires `DNSPLUGIN` variable set) (`duckdns` method requires `DUCKDNSTOKEN` variable set, and the `SUBDOMAINS` variable must be either empty or set to `wildcard`). |
124-
| `-e DNSPLUGIN=cloudflare` | Required if `VALIDATION` is set to `dns`. Options are `cloudflare`, `cloudxns`, `digitalocean`, `dnsimple`, `dnsmadeeasy`, `google`, `luadns`, `nsone`, `ovh`, `rfc2136` and `route53`. Also need to enter the credentials into the corresponding ini file under `/config/dns-conf`. |
124+
| `-e DNSPLUGIN=cloudflare` | Required if `VALIDATION` is set to `dns`. Options are `cloudflare`, `cloudxns`, `digitalocean`, `dnsimple`, `dnsmadeeasy`, `google`, `inwx`, `luadns`, `nsone`, `ovh`, `rfc2136` and `route53`. Also need to enter the credentials into the corresponding ini file under `/config/dns-conf`. |
125125
| `-e DUCKDNSTOKEN=<token>` | Required if `VALIDATION` is set to `duckdns`. Retrieve your token from https://www.duckdns.org |
126126
| `-e EMAIL=<e-mail>` | Optional e-mail address used for cert expiration notifications. |
127127
| `-e DHLEVEL=2048` | Dhparams bit value (default=2048, can be set to `1024` or `4096`). |
@@ -257,6 +257,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
257257

258258
## Versions
259259

260+
* **14.08.19:** - Add inwx dns validation plugin.
260261
* **06.08.19:** - Add php7-ftp.
261262
* **04.08.19:** - Add php7-bcmath, php7-pear, php7-xmlrpc.
262263
* **02.08.19:** - Add php7-ldap, remove geoip v1(deprecated).

readme-vars.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ cap_add_param_vars:
5151
# optional container parameters
5252
opt_param_usage_include_env: true
5353
opt_param_env_vars:
54-
- { env_var: "DNSPLUGIN", env_value: "cloudflare", desc: "Required if `VALIDATION` is set to `dns`. Options are `cloudflare`, `cloudxns`, `digitalocean`, `dnsimple`, `dnsmadeeasy`, `google`, `luadns`, `nsone`, `ovh`, `rfc2136` and `route53`. Also need to enter the credentials into the corresponding ini file under `/config/dns-conf`." }
54+
- { env_var: "DNSPLUGIN", env_value: "cloudflare", desc: "Required if `VALIDATION` is set to `dns`. Options are `cloudflare`, `cloudxns`, `digitalocean`, `dnsimple`, `dnsmadeeasy`, `google`, `inwx`, `luadns`, `nsone`, `ovh`, `rfc2136` and `route53`. Also need to enter the credentials into the corresponding ini file under `/config/dns-conf`." }
5555
- { env_var: "DUCKDNSTOKEN", env_value: "<token>", desc: "Required if `VALIDATION` is set to `duckdns`. Retrieve your token from https://www.duckdns.org" }
5656
- { env_var: "EMAIL", env_value: "<e-mail>", desc: "Optional e-mail address used for cert expiration notifications." }
5757
- { env_var: "DHLEVEL", env_value: "2048", desc: "Dhparams bit value (default=2048, can be set to `1024` or `4096`)." }
@@ -126,6 +126,7 @@ app_setup_nginx_reverse_proxy_block: ""
126126

127127
# changelog
128128
changelogs:
129+
- { date: "14.08.19:", desc: "Add inwx dns validation plugin." }
129130
- { date: "06.08.19:", desc: "Add php7-ftp." }
130131
- { date: "04.08.19:", desc: "Add php7-bcmath, php7-pear, php7-xmlrpc." }
131132
- { date: "02.08.19:", desc: "Add php7-ldap, remove geoip v1(deprecated)." }

root/defaults/dns-conf/inwx.ini

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Instructions: https://github.com/oGGy990/certbot-dns-inwx
2+
# Replace with your values
3+
certbot_dns_inwx:dns_inwx_url = https://api.domrobot.com/xmlrpc/
4+
certbot_dns_inwx:dns_inwx_username = your_username
5+
certbot_dns_inwx:dns_inwx_password = your_password
6+
certbot_dns_inwx:dns_inwx_shared_secret = your_shared_secret optional

root/etc/cont-init.d/50-config

+3-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ cp /config/fail2ban/jail.local /etc/fail2ban/jail.local
7676
cp /defaults/ldap.conf /config/nginx/ldap.conf
7777

7878
# check to make sure DNSPLUGIN is selected if dns validation is used
79-
[[ "$VALIDATION" = "dns" ]] && [[ ! "$DNSPLUGIN" =~ ^(cloudflare|cloudxns|digitalocean|dnsimple|dnsmadeeasy|google|luadns|nsone|ovh|rfc2136|route53)$ ]] && \
79+
[[ "$VALIDATION" = "dns" ]] && [[ ! "$DNSPLUGIN" =~ ^(cloudflare|cloudxns|digitalocean|dnsimple|dnsmadeeasy|google|inwx|luadns|nsone|ovh|rfc2136|route53)$ ]] && \
8080
echo "Please set the DNSPLUGIN variable to a valid plugin name. See docker info for more details." && \
8181
sleep infinity
8282

@@ -174,6 +174,8 @@ fi
174174
if [ "$VALIDATION" = "dns" ]; then
175175
if [ "$DNSPLUGIN" = "route53" ]; then
176176
PREFCHAL="--dns-${DNSPLUGIN} --manual-public-ip-logging-ok"
177+
elif [ "$DNSPLUGIN" = "inwx" ]; then
178+
PREFCHAL="-a certbot-dns-${DNSPLUGIN}:dns-${DNSPLUGIN} --certbot-dns-${DNSPLUGIN}:dns-${DNSPLUGIN}-credentials /config/dns-conf/${DNSPLUGIN}.ini --manual-public-ip-logging-ok"
177179
else
178180
PREFCHAL="--dns-${DNSPLUGIN} --dns-${DNSPLUGIN}-credentials /config/dns-conf/${DNSPLUGIN}.ini --manual-public-ip-logging-ok"
179181
fi

0 commit comments

Comments
 (0)