Skip to content

Commit 0ffa850

Browse files
committed
Fixed HE DNS validation.
Fixed HE DNS validation to adhere to certbot/certbot PR#8131 (certbot/certbot#8131)
1 parent aa9990b commit 0ffa850

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ app_setup_nginx_reverse_proxy_block: ""
155155

156156
# changelog
157157
changelogs:
158+
- { date: "06.10.21:", desc: "Corrected Hurricane Electric (HE) DNS validation to adhere to certbot PR#8131. [Here's more info] (https://github.com/certbot/certbot/pull/8131)" }
158159
- { date: "05.10.21:", desc: "Added support for Hurricane Electric (HE) DNS validation." }
159160
- { date: "01.10.21:", desc: "Check if the cert uses the old LE root cert, revoke and regenerate if necessary. [Here's more info](https://twitter.com/letsencrypt/status/1443621997288767491) on LE root cert expiration" }
160161
- { date: "19.09.21:", desc: "Add an optional header to opt out of Google FLoC in `ssl.conf`." }

root/defaults/dns-conf/he.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Instructions: https://github.com/TSaaristo/certbot-dns-he#example-usage
22
# Replace with your values
3-
certbot_dns_he:dns_he_user = Me
4-
certbot_dns_he:dns_he_pass = my HE password
3+
dns_he_user = Me
4+
dns_he_pass = my HE password

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ if [ "$VALIDATION" = "dns" ]; then
236236
elif [[ "$DNSPLUGIN" =~ ^(google)$ ]]; then
237237
if [ -n "$PROPAGATION" ];then PROPAGATIONPARAM="--dns-${DNSPLUGIN}-propagation-seconds ${PROPAGATION}"; fi
238238
PREFCHAL="--dns-${DNSPLUGIN} --dns-${DNSPLUGIN}-credentials /config/dns-conf/${DNSPLUGIN}.json ${PROPAGATIONPARAM}"
239-
elif [[ "$DNSPLUGIN" =~ ^(he)$ ]]; then
240-
if [ -n "$PROPAGATION" ];then PROPAGATIONPARAM="--certbot-dns-${DNSPLUGIN}:dns-${DNSPLUGIN}-propagation-seconds ${PROPAGATION}"; fi
241-
PREFCHAL="-a certbot-dns-${DNSPLUGIN}:dns-${DNSPLUGIN} --certbot-dns-${DNSPLUGIN}:dns-${DNSPLUGIN}-credentials /config/dns-conf/${DNSPLUGIN}.ini ${PROPAGATIONPARAM}"
239+
elif [[ "$DNSPLUGIN" =~ ^(he)$ ]]; then
240+
if [ -n "$PROPAGATION" ];then PROPAGATIONPARAM="--dns-${DNSPLUGIN}-propagation-seconds ${PROPAGATION}"; fi
241+
PREFCHAL="-a dns-${DNSPLUGIN} --dns-${DNSPLUGIN}-credentials /config/dns-conf/${DNSPLUGIN}.ini ${PROPAGATIONPARAM}"
242242
elif [[ "$DNSPLUGIN" =~ ^(aliyun|domeneshop|hetzner|inwx|ionos|netcup|njalla|transip|vultr)$ ]]; then
243243
if [ -n "$PROPAGATION" ];then PROPAGATIONPARAM="--dns-${DNSPLUGIN}-propagation-seconds ${PROPAGATION}"; fi
244244
PREFCHAL="-a dns-${DNSPLUGIN} --dns-${DNSPLUGIN}-credentials /config/dns-conf/${DNSPLUGIN}.ini ${PROPAGATIONPARAM}"

0 commit comments

Comments
 (0)