Browse Source

configuration variable for refetch

pull/14/head
Dennis Koot 10 years ago
parent
commit
295e9714ca
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      getssl

+ 9
- 0
getssl View File

@ -49,6 +49,7 @@ VALIDATE_VIA_DNS=""
RELOAD_CMD=""
RENEW_ALLOW="30"
PRIVATE_KEY_ALG="rsa"
ALWAYS_REFETCH_CERT="false"
_USE_DEBUG=0
_CREATE_CONFIG=0
_REFETCH_CERT=0
@ -137,6 +138,8 @@ write_getssl_template() {
#RELOAD_CMD=""
# The time period within which you want to allow renewal of a certificate - this prevents hitting some of the rate limits.
RENEW_ALLOW="30"
# Always refetch the certificate from the server before checking expiry
#ALWAYS_REFETCH_CERT="true"
# openssl config file. The default should work in most cases.
SSLCONF="$SSLCONF"
@ -185,6 +188,8 @@ write_domain_template() {
#RELOAD_CMD=""
# The time period within which you want to allow renewal of a certificate - this prevents hitting some of the rate limits.
#RENEW_ALLOW="30"
# Always refetch the certificate from the server before checking expiry
#ALWAYS_REFETCH_CERT="true"
# Use the following 3 variables if you want to validate via DNS
#VALIDATE_VIA_DNS="true"
@ -451,6 +456,10 @@ if [ -f "$DOMAIN_DIR/getssl.cfg" ]; then
. "$DOMAIN_DIR/getssl.cfg"
fi
if [ "$ALWAYS_REFETCH_CERT" == "true" ]; then
_REFETCH_CERT=1
fi
# refetch the certificate from the server if option is set
if [ ${_REFETCH_CERT} -eq 1 ]; then
info "refetch certificate for $DOMAIN and save to $DOMAIN_DIR/${DOMAIN}.crt"


Loading…
Cancel
Save