Browse Source

Support certificates with SANs

pull/476/head
Radek SPRTA 6 years ago
parent
commit
b8b70f7cee
No known key found for this signature in database GPG Key ID: 3C36A3AA4A06D51
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      dns_scripts/dns_add_clouddns
  2. +1
    -1
      dns_scripts/dns_del_clouddns

+ 1
- 1
dns_scripts/dns_add_clouddns View File

@ -69,7 +69,7 @@ if [[ -z "$domain_id" ]]; then
fi
# Add challenge record
txt_record="_acme-challenge.$domain_root."
txt_record="_acme-challenge.$fulldomain."
resp=$(curl --silent "${curl_params[@]}" -X POST "$API/record-txt" \
--data "{\"type\":\"TXT\",\"name\":\"$txt_record\",\"value\":\"$token\",\"domainId\":\"$domain_id\"}")


+ 1
- 1
dns_scripts/dns_del_clouddns View File

@ -54,7 +54,7 @@ curl_params=( -H "Authorization: Bearer $access_token" -H 'Content-Type: applica
# Get main domain and challenge record
domain_root=$(echo "$fulldomain" | awk -F\. '{print $(NF-1) FS $NF}')
txt_record="_acme-challenge.$domain_root."
txt_record="_acme-challenge.$fulldomain."
# Get domain id
curl_domainid_body="{\"search\": [{\"name\": \"clientId\", \"operator\": \"eq\", \"value\": \"$client\"}, {\"name\": \"domainName\", \"operator\": \"eq\", \"value\": \"$domain_root.\"}]}"


Loading…
Cancel
Save