mirror of
https://github.com/acmesh-official/acme.sh
synced 2025-08-22 01:49:43 +00:00
* Fix for empty error objects in response breaking extraction of domain validation types Fix for empty error objects in the response which mess up the extraction of domain validation types due to the closing brace in the error object prematurely matching the end of the search pattern. This seems to be a recent change with ZeroSSL in particular where "error":{} is being included in responses. There could potentially be a related issue if there is a complex error object ever returned in the validation check response where an embedded sub-object could lead to an incomplete extraction of the error message, roughly around line 5040. Adapted from fix suggested here: https://github.com/acmesh-official/acme.sh/issues/4933#issuecomment-1870499018 * Add new dnsapi support for OpenProvider.eu using new REST API * Cleanup duplicate debug log output based on DNS test run * Resolve spellcheck error * Configure 10 second timeout to ACME_DIRECTORY API call * add support for AIX style netstat * add * fix for wiki * minor * minor * wiki * wiki * dnsapi: dns_mydnsjp.sh fix author The @epgdatacapbon was renamed to @tkmsst Signed-off-by: Sergey Ponomarev <stokito@gmail.com> * dnsapi: dns_ddnss.sh remove RaidenII from authors He made the DuckDNS script that was used for this script but he can't support the script. Signed-off-by: Sergey Ponomarev <stokito@gmail.com> * dnsapi: fix authors: use @ for GitHub profiles Signed-off-by: Sergey Ponomarev <stokito@gmail.com> * dnsapi: dns_vultr.sh remove empty author Signed-off-by: Sergey Ponomarev <stokito@gmail.com> * dnsapi: dns_mijnhost.sh rearrange fields, use user docs instead of API docs Signed-off-by: Sergey Ponomarev <stokito@gmail.com> * dnsapi: fix Structured DNS Info Signed-off-by: Sergey Ponomarev <stokito@gmail.com> * Fix logged typo when running pre hook * Run post hook when _on_before_issue errors --------- Signed-off-by: Sergey Ponomarev <stokito@gmail.com> Co-authored-by: Ciaran Walsh <ciaran@ciaran-walsh.com> Co-authored-by: Lambiek12 <algemeen@lambiek12.nl> Co-authored-by: Erwin Oegema <blablaechthema@hotmail.com> Co-authored-by: laDanz <cdanzmann@gmail.com> Co-authored-by: neil <github@neilpang.com> Co-authored-by: neil <gitpc@neilpang.com> Co-authored-by: Sergey Ponomarev <stokito@gmail.com> Co-authored-by: David Beitey <david@davidjb.com> Co-authored-by: Jan-willem van Kampen <Lambiek12@users.noreply.github.com>
69 lines
1.6 KiB
Bash
69 lines
1.6 KiB
Bash
#!/usr/bin/env sh
|
|
# shellcheck disable=SC2034
|
|
dns_tele3_info='tele3.cz
|
|
Site: tele3.cz
|
|
Docs: github.com/acmesh-official/acme.sh/wiki/dnsapi2#tele3
|
|
Options:
|
|
TELE3_Key API Key
|
|
TELE3_Secret API Secret
|
|
Author: Roman Blizik <@par-pa>
|
|
'
|
|
|
|
TELE3_API="https://www.tele3.cz/acme/"
|
|
|
|
######## Public functions #####################
|
|
|
|
dns_tele3_add() {
|
|
_info "Using TELE3 DNS"
|
|
data="\"ope\":\"add\", \"domain\":\"$1\", \"value\":\"$2\""
|
|
if ! _tele3_call; then
|
|
_err "Publish zone failed"
|
|
return 1
|
|
fi
|
|
|
|
_info "Zone published"
|
|
}
|
|
|
|
dns_tele3_rm() {
|
|
_info "Using TELE3 DNS"
|
|
data="\"ope\":\"rm\", \"domain\":\"$1\", \"value\":\"$2\""
|
|
if ! _tele3_call; then
|
|
_err "delete TXT record failed"
|
|
return 1
|
|
fi
|
|
|
|
_info "TXT record successfully deleted"
|
|
}
|
|
|
|
#################### Private functions below ##################################
|
|
|
|
_tele3_init() {
|
|
TELE3_Key="${TELE3_Key:-$(_readaccountconf_mutable TELE3_Key)}"
|
|
TELE3_Secret="${TELE3_Secret:-$(_readaccountconf_mutable TELE3_Secret)}"
|
|
if [ -z "$TELE3_Key" ] || [ -z "$TELE3_Secret" ]; then
|
|
TELE3_Key=""
|
|
TELE3_Secret=""
|
|
_err "You must export variables: TELE3_Key and TELE3_Secret"
|
|
return 1
|
|
fi
|
|
|
|
#save the config variables to the account conf file.
|
|
_saveaccountconf_mutable TELE3_Key "$TELE3_Key"
|
|
_saveaccountconf_mutable TELE3_Secret "$TELE3_Secret"
|
|
}
|
|
|
|
_tele3_call() {
|
|
_tele3_init
|
|
data="{\"key\":\"$TELE3_Key\", \"secret\":\"$TELE3_Secret\", $data}"
|
|
|
|
_debug data "$data"
|
|
|
|
response="$(_post "$data" "$TELE3_API" "" "POST")"
|
|
_debug response "$response"
|
|
|
|
if [ "$response" != "success" ]; then
|
|
_err "$response"
|
|
return 1
|
|
fi
|
|
}
|