6 # Report Bugs here: https://github.com/par-pa/acme.sh
9 # export TELE3_Key="MS2I4uPPaI..."
10 # export TELE3_Secret="kjhOIHGJKHg"
13 TELE3_API
="https://www.tele3.cz/acme/"
15 ######## Public functions #####################
18 _info
"Using TELE3 DNS"
19 data
="\"ope\":\"add\", \"domain\":\"$1\", \"value\":\"$2\""
20 if ! _tele3_call
; then
21 _err
"Publish zone failed"
25 _info
"Zone published"
29 _info
"Using TELE3 DNS"
30 data
="\"ope\":\"rm\", \"domain\":\"$1\", \"value\":\"$2\""
31 if ! _tele3_call
; then
32 _err
"delete TXT record failed"
36 _info
"TXT record successfully deleted"
39 #################### Private functions below ##################################
42 TELE3_Key
="${TELE3_Key:-$(_readaccountconf_mutable TELE3_Key)}"
43 TELE3_Secret
="${TELE3_Secret:-$(_readaccountconf_mutable TELE3_Secret)}"
44 if [ -z "$TELE3_Key" ] ||
[ -z "$TELE3_Secret" ]; then
47 _err
"You must export variables: TELE3_Key and TELE3_Secret"
51 #save the config variables to the account conf file.
52 _saveaccountconf_mutable TELE3_Key
"$TELE3_Key"
53 _saveaccountconf_mutable TELE3_Secret
"$TELE3_Secret"
58 data
="{\"key\":\"$TELE3_Key\", \"secret\":\"$TELE3_Secret\", $data}"
62 response
="$(_post "$data" "$TELE3_API" "" "POST
")"
63 _debug response
"$response"
65 if [ "$response" != "success" ]; then