API access must be enabled at https://painel.kinghost.com.br/painel.api.php
```
-export KINGHOST_username="yourusername"
+export KINGHOST_Username="yourusername"
export KINGHOST_Password="yourpassword"
acme.sh --issue --dns dns_kinghost -d example.com -d *.example.com
```
fi
#save the credentials to the account conf file.
- _saveaccountconf_mutable KINGHOST_Username "$KINGHOST_Username"
- _saveaccountconf_mutable KINGHOST_Password "$KINGHOST_Password"
+ _saveaccountconf_mutable KINGHOST_Username "$KINGHOST_Username"
+ _saveaccountconf_mutable KINGHOST_Password "$KINGHOST_Password"
_debug "Getting txt records"
_kinghost_rest GET "dns" "name=$fulldomain&content=$txtvalue"
return 1
fi
- return 0;
+ return 0
}
# Usage: fulldomain txtvalue
KINGHOST_Password="${KINGHOST_Password:-$(_readaccountconf_mutable KINGHOST_Password)}"
KINGHOST_Username="${KINGHOST_Username:-$(_readaccountconf_mutable KINGHOST_Username)}"
- if [ -z "$KINGHOST_Password" ] || [ -z "$KINGHOST_Username" ]; then
+ if [ -z "$KINGHOST_Password" ] || [ -z "$KINGHOST_Username" ]; then
KINGHOST_Password=""
KINGHOST_Username=""
_err "You don't specify KingHost api key and email yet."
return 1
fi
- return 0;
+ return 0
}
#################### Private functions below ##################################
fi
_debug2 response "$response"
return 0
-}
\ No newline at end of file
+}