The parameter `/home/wwwroot/example.com`is the web root folder. You **MUST** have `write access` to this folder.
The parameter `/home/wwwroot/example.com`or `/home/username/public_html` or `/var/www/html` is the web root folder where you host your website files. You **MUST** have `write access` to this folder.
Second argument **"example.com"** is the main domain you want to issue the cert for.
You must have at least one domain there.
...
...
@@ -292,6 +304,7 @@ You don't have to do anything manually!
1. CloudFlare.com API
1. DNSPod.cn API
1. DNSimple API
1. CloudXNS.com API
1. GoDaddy.com API
1. OVH, kimsufi, soyoustart and runabove API
...
...
@@ -315,6 +328,8 @@ You don't have to do anything manually!
_err "Dynu client id and secret is not specified."
_err "Please create you API client id and secret and try again."
return 1
fi
#save the client id and secret to the account conf file.
_saveaccountconf Dynu_ClientId "$Dynu_ClientId"
_saveaccountconf Dynu_Secret "$Dynu_Secret"
if[-z"$Dynu_Token"];then
_info "Getting Dynu token."
if! _dynu_authentication;then
_err "Can not get token."
fi
fi
_debug "Detect root zone"
if! _get_root "$fulldomain";then
_err "Invalid domain."
return 1
fi
_debug _node "$_node"
_debug _domain_name "$_domain_name"
_info "Creating TXT record."
if! _dynu_rest POST "dns/record/add""{\"domain_name\":\"$_domain_name\",\"node_name\":\"$_node\",\"record_type\":\"TXT\",\"text_data\":\"$txtvalue\",\"state\":true,\"ttl\":90}";then