File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 186
186
# 2017-02-18 add OCSP Must-Staple to the domain csr generation (2.10)
187
187
# 2019-09-30 issue #423 Use HTTP 1.1 as workaround atm (2.11)
188
188
# 2019-10-02 issue #425 Case insensitive processing of agreement url because of HTTP/2 (2.12)
189
+ # 2019-10-07 update DNS checks to allow use of CNAMEs (2.13)
189
190
# ----------------------------------------------------------------------------------------
190
191
191
192
PROGNAME=${0##*/ }
192
- VERSION=" 2.12 "
193
+ VERSION=" 2.13 "
193
194
194
195
# defaults
195
196
ACCOUNT_KEY_LENGTH=4096
@@ -1990,13 +1991,13 @@ if [[ $VALIDATE_VIA_DNS == "true" ]]; then
1990
1991
| grep ' "' | awk -F' "' ' { print $2}' )
1991
1992
elif [[ " $DNS_CHECK_FUNC " == " drill" ]] || [[ " $DNS_CHECK_FUNC " == " dig" ]]; then
1992
1993
check_result=$( $DNS_CHECK_FUNC TXT " _acme-challenge.${d} " " @${ns} " \
1993
- | grep ^_acme | awk -F' "' ' { print $2}' )
1994
+ | grep ' 300 IN TXT ' | awk -F' "' ' { print $2}' )
1994
1995
elif [[ " $DNS_CHECK_FUNC " == " host" ]]; then
1995
1996
check_result=$( $DNS_CHECK_FUNC -t TXT " _acme-challenge.${d} " " ${ns} " \
1996
- | grep ^_acme | awk -F' "' ' { print $2}' )
1997
+ | grep ' descriptive text ' | awk -F' "' ' { print $2}' )
1997
1998
else
1998
1999
check_result=$( nslookup -type=txt " _acme-challenge.${d} " " ${ns} " \
1999
- | grep ^_acme | awk -F' "' ' { print $2}' )
2000
+ | grep ' text = ' | awk -F' "' ' { print $2}' )
2000
2001
fi
2001
2002
debug " expecting $auth_key "
2002
2003
debug " ${ns} gave ... $check_result "
You can’t perform that action at this time.
0 commit comments