|
|
@ -1105,6 +1105,7 @@ issue() { |
|
|
|
Le_RealCACertPath="$7" |
|
|
|
Le_ReloadCmd="$8" |
|
|
|
Le_RealFullChainPath="$9" |
|
|
|
dnssleep="${10}" |
|
|
|
|
|
|
|
#remove these later. |
|
|
|
if [ "$Le_Webroot" = "dns-cf" ] ; then |
|
|
@ -1620,7 +1621,7 @@ renew() { |
|
|
|
fi |
|
|
|
|
|
|
|
IS_RENEW="1" |
|
|
|
issue "$Le_Webroot" "$Le_Domain" "$Le_Alt" "$Le_Keylength" "$Le_RealCertPath" "$Le_RealKeyPath" "$Le_RealCACertPath" "$Le_ReloadCmd" "$Le_RealFullChainPath" |
|
|
|
issue "$Le_Webroot" "$Le_Domain" "$Le_Alt" "$Le_Keylength" "$Le_RealCertPath" "$Le_RealKeyPath" "$Le_RealCACertPath" "$Le_ReloadCmd" "$Le_RealFullChainPath" "$dnssleep" |
|
|
|
local res=$? |
|
|
|
IS_RENEW="" |
|
|
|
|
|
|
@ -2164,7 +2165,7 @@ Parameters: |
|
|
|
--standalone Use standalone mode. |
|
|
|
--apache Use apache mode. |
|
|
|
--dns [dns_cf|dns_dp|dns_cx|/path/to/api/file] Use dns mode or dns api. |
|
|
|
--dnssleep # Number of seconds for sleep (for reload dns cache etc.), after succesful insert dns records via dns api. |
|
|
|
--dnssleep Number of seconds for sleep (for reload dns cache etc.), after succesful insert dns records via dns api. |
|
|
|
|
|
|
|
--keylength, -k [2048] Specifies the domain key length: 2048, 3072, 4096, 8192 or ec-256, ec-384. |
|
|
|
--accountkeylength, -ak [2048] Specifies the account key length. |
|
|
@ -2235,6 +2236,7 @@ _process() { |
|
|
|
_accountkey="" |
|
|
|
_certhome="" |
|
|
|
_httpport="" |
|
|
|
dnssleep="60" |
|
|
|
while [ ${#} -gt 0 ] ; do |
|
|
|
case "${1}" in |
|
|
|
|
|
|
@ -2361,10 +2363,10 @@ _process() { |
|
|
|
_webroot="$_webroot,$wvalue" |
|
|
|
fi |
|
|
|
;; |
|
|
|
--dnssleep |
|
|
|
--dnssleep) |
|
|
|
re='^[0-9]+$' |
|
|
|
if ! [[ $2 =~ $re ]] ; then |
|
|
|
dnssleep="60" |
|
|
|
if ! [[ "$2" =~ $re ]] ; then |
|
|
|
dnssleep="60" |
|
|
|
else |
|
|
|
dnssleep="$2" |
|
|
|
fi |
|
|
@ -2457,7 +2459,7 @@ _process() { |
|
|
|
install) install ;; |
|
|
|
uninstall) uninstall ;; |
|
|
|
issue) |
|
|
|
issue "$_webroot" "$_domain" "$_altdomains" "$_keylength" "$_certpath" "$_keypath" "$_capath" "$_reloadcmd" "$_fullchainpath" |
|
|
|
issue "$_webroot" "$_domain" "$_altdomains" "$_keylength" "$_certpath" "$_keypath" "$_capath" "$_reloadcmd" "$_fullchainpath" "$dnssleep" |
|
|
|
;; |
|
|
|
installcert) |
|
|
|
installcert "$_domain" "$_certpath" "$_keypath" "$_capath" "$_reloadcmd" "$_fullchainpath" |
|
|
|