diff --git a/create-getssl-config b/create-getssl-config index 61c61bb..059e998 100755 --- a/create-getssl-config +++ b/create-getssl-config @@ -19,10 +19,11 @@ # 2016-02-04 Created (v0.1) # 2016-02-05 Updated to include more variables. Still not full operational. (v0.2) # 2016-05-04 Corrected typo on DNS_DEL_COMMAND (v0.3) +# 2016-05-23 Added option to provide a blank response, for things like SANS. (0.4) # --------------------------------------------------------------------------- PROGNAME=${0##*/} -VERSION="0.3" +VERSION="0.4" # defaults CA="https://acme-staging.api.letsencrypt.org" @@ -101,6 +102,9 @@ get_user_input() { echo "" echo "$HelpInfo" echo "" + elif [[ "$response" == "-" ]]; then + res="" + validresponse="true" else res=$response validresponse="true" @@ -345,7 +349,8 @@ if [[ ! -z ${REMOTE_PORT} ]]; then fi get_user_input "Additional domain names" "${SANS}" \ - "this could be multiple domains / subdomains in a comma separated list" + "this could be multiple domains / subdomains in a comma separated list" \ + "use the minus sign - if you don't want any SANS" SANS=$res get_user_input "Validate via DNS" "${VALIDATE_VIA_DNS}" \ diff --git a/getssl b/getssl index 1122ea0..50bdafa 100755 --- a/getssl +++ b/getssl @@ -253,6 +253,8 @@ write_domain_template() { # write out a template file for a domain. #DNS_ADD_COMMAND= #DNS_DEL_COMMAND= # If your DNS-server needs extra time to make sure your DNS changes are readable by the ACME-server (time in seconds) + AUTH_DNS_SERVER="" + #DNS_WAIT=10 #DNS_EXTRA_WAIT=60 _EOF_domain_ }