-
Notifications
You must be signed in to change notification settings - Fork 385
Fix cPanel Scripts #874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix cPanel Scripts #874
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -58,7 +58,7 @@ fi | |||||
| line=$(echo "$resp" | sed -e 's/.*line":\([0-9]*\),.*/\1/') | ||||||
| if [[ "$line" != "" ]]; then | ||||||
| # Delete the challenge token | ||||||
| request_params="&cpanel_jsonapi_func=remove_zone_record&domain=$domain&type=TXT&name=_acme-challenge$name&line=$line" | ||||||
| request_params="&cpanel_jsonapi_func=remove_zone_record&domain=${domain}&type=TXT&name=_acme-challenge&line=${line}" | ||||||
|
||||||
| request_params="&cpanel_jsonapi_func=remove_zone_record&domain=${domain}&type=TXT&name=_acme-challenge&line=${line}" | |
| request_params="&cpanel_jsonapi_func=remove_zone_record&domain=${domain}&type=TXT&name=_acme-challenge${name}&line=${line}" |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -293,6 +293,7 @@ | |||||||||
| # 2024-03-26 Test for "true" in wildcard property of authorization responses | ||||||||||
| # 2024-10-16 Add newlines to /directory response (#765)(#859) | ||||||||||
| # 2025-06-18 Support profiles | ||||||||||
| # 2025-12-02 Fix cPanel support for API zone record updates and wildcard domain support | ||||||||||
| # 2025-07-28 Accept lowercase replay-nonce headers (#884) | ||||||||||
|
Comment on lines
+296
to
297
|
||||||||||
| # 2025-12-02 Fix cPanel support for API zone record updates and wildcard domain support | |
| # 2025-07-28 Accept lowercase replay-nonce headers (#884) | |
| # 2025-07-28 Accept lowercase replay-nonce headers (#884) | |
| # 2025-12-02 Fix cPanel support for API zone record updates and wildcard domain support |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,6 +5,7 @@ | |||||
| # use with RELOAD_CMD="${HOME}/cpanel_cert_upload domain.com" | ||||||
|
|
||||||
| domain="$1" | ||||||
| nowild=$(echo "${1//\*\./}") | ||||||
|
||||||
| nowild=$(echo "${1//\*\./}") | |
| nowild=${domain#\*\.} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nameis still computed earlier (for the CNAME case), but this request now ignores it. That makes the CNAME handling ineffective and can create the TXT record at_acme-challengein the target zone instead of the intended_acme-challenge.<relative>. Either incorporate the computednameinto the ZoneEditnameparameter again, or remove the now-unusednamelogic entirely to avoid incorrect behavior.