Skip to content

Commit

Permalink
Merge pull request #844 from jsnider2/master
Browse files Browse the repository at this point in the history
Test for "true" in wildcard property of authorization responses
  • Loading branch information
timkimber authored Oct 10, 2024
2 parents c3f9d29 + f50a7ee commit 717fbc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion getssl
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@
# 2023-02-04 Create newline to ensure [SAN] section can be parsed (#792)(MRigal)
# 2023-02-22 Remove cronie from deb package dependencies (2.48)
# 2024-03-18 Refresh the TXT record if a CNAME is found (JoergBruce #828) (2.49)
# 2024-03-26 Test for "true" in wildcard property of authorization responses
# ----------------------------------------------------------------------------------------

case :$SHELLOPTS: in
Expand Down Expand Up @@ -1241,7 +1242,7 @@ create_order() {
for d in "${alldomains[@]}"; do
# Convert domain to lowercase as response from server will be in lowercase
lower_d=$(echo "$d" | tr "[:upper:]" "[:lower:]")
if [[ ( "$lower_d" == "$authdomain" && -z "$wildcard" ) || ( "$lower_d" == "*.${authdomain}" && -n "$wildcard" ) ]]; then
if [[ ( "$lower_d" == "$authdomain" && "$wildcard" != "true" ) || ( "$lower_d" == "*.${authdomain}" && "$wildcard" == "true" ) ]]; then
debug "Saving authorization response for $authdomain for domain alldomains[$dn]"
debug "Response = ${response//[$'\t\r\n']}"
AuthLinkResponse[dn]=$response
Expand Down

0 comments on commit 717fbc0

Please sign in to comment.