Browse Source

include key types in config check

pull/216/head
srvrco 9 years ago
parent
commit
c3f380e527
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      getssl

+ 10
- 0
getssl View File

@ -308,6 +308,16 @@ check_challenge_completion() { # checks with the ACME server if our challenge is
check_config() { # check the config files for all obvious errors
debug "checking config"
if [[ ! "$ACCOUNT_KEY_TYPE" =~ ^(rsa|prime256v1|secp384r1|secp521r1)$ ]]; then
info "invalid ACCOUNT_KEY_TYPE"
config_errors=true
fi
if [[ ! "$PRIVATE_KEY_ALG" =~ ^(rsa|prime256v1|secp384r1|secp521r1)$ ]]; then
info "invalid PRIVATE_KEY_ALG"
config_errors=true
fi
# get all domains
if [[ "$IGNORE_DIRECTORY_DOMAIN" == "true" ]]; then
alldomains=${SANS//,/ }


Loading…
Cancel
Save