Skip to content

Commit 94223cd

Browse files
committed
Implement debug informations for LE validation, thanks to @shakaran!
1 parent a4ab386 commit 94223cd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ All notable changes to this project will be documented in this file.
3939
- Create a couple of writeable folders in each user home directory (#580).
4040
- Added gnupg2 check to prevent issues with pubkey installation.
4141
- Fixed nameserver validation on add new user packages.
42+
- Implement additional debug informations for LE validation, thanks to @shakaran
4243

4344
## [1.0.5] - 2019-08-06 - Hotfix
4445
### Bugfixes

bin/v-add-letsencrypt-domain

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ for auth in $authz; do
292292
validation=$(echo "$answer"|grep -A1 $proto |tail -n1|cut -f4 -d \")
293293
nonce=$(echo "$answer" |grep Nonce |cut -f2 -d \ |tr -d '\r\n')
294294
status=$(echo "$answer"|grep HTTP/1.1 |tail -n1 |cut -f 2 -d ' ')
295+
details=$(echo "$answer"| grep detail | cut -f 2 -d ',' | cut -f 2-4 -d ':')
295296
if [[ "$status" -ne 200 ]]; then
296297
# Delete DNS CAA record
297298
if [ ! -z "$DNS_SYSTEM" ]; then
@@ -304,7 +305,7 @@ for auth in $authz; do
304305
fi
305306
fi
306307
fi
307-
check_result $E_CONNECT "Let's Encrypt validation status $status"
308+
check_result $E_CONNECT "Let's Encrypt validation status $status. Details: $details"
308309
fi
309310

310311
i=$((i + 1))

0 commit comments

Comments
 (0)