_info "Installed to $LE_WORKING_DIR/$PROJECT_ENTRY"
_info "Installed to $LE_WORKING_DIR/$PROJECT_ENTRY"
_installalias
_installalias"$_c_home"
for subf in$_SUB_FOLDERS;do
for subf in$_SUB_FOLDERS;do
if[-d"$subf"];then
if[-d"$subf"];then
...
@@ -3796,7 +3834,7 @@ install() {
...
@@ -3796,7 +3834,7 @@ install() {
fi
fi
if[-z"$_nocron"];then
if[-z"$_nocron"];then
installcronjob
installcronjob"$_c_home"
fi
fi
if[-z"$NO_DETECT_SH"];then
if[-z"$NO_DETECT_SH"];then
...
@@ -3829,7 +3867,7 @@ uninstall() {
...
@@ -3829,7 +3867,7 @@ uninstall() {
_uninstallalias
_uninstallalias
rm-f"$LE_WORKING_DIR/$PROJECT_ENTRY"
rm-f"$LE_WORKING_DIR/$PROJECT_ENTRY"
_info "The keys and certs are in $LE_WORKING_DIR, you can remove them by yourself."
_info "The keys and certs are in \"$(__green "$LE_CONFIG_HOME")\", you can remove them by yourself."
}
}
...
@@ -3902,18 +3940,18 @@ Commands:
...
@@ -3902,18 +3940,18 @@ Commands:
--issue Issue a cert.
--issue Issue a cert.
--signcsr Issue a cert from an existing csr.
--signcsr Issue a cert from an existing csr.
--deploy Deploy the cert to your server.
--deploy Deploy the cert to your server.
--installcert Install the issued cert to apache/nginx or any other server.
--install-cert Install the issued cert to apache/nginx or any other server.
--renew, -r Renew a cert.
--renew, -r Renew a cert.
--renewAll Renew all the certs.
--renew-all Renew all the certs.
--revoke Revoke a cert.
--revoke Revoke a cert.
--list List all the certs.
--list List all the certs.
--showcsr Show the content of a csr.
--showcsr Show the content of a csr.
--installcronjob Install the cron job to renew certs, you don't need to call this. The 'install' command can automatically install the cron job.
--install-cronjob Install the cron job to renew certs, you don't need to call this. The 'install' command can automatically install the cron job.
--uninstallcronjob Uninstall the cron job. The 'uninstall' command can do this automatically.
--uninstall-cronjob Uninstall the cron job. The 'uninstall' command can do this automatically.
--cron Run cron job to renew all the certs.
--cron Run cron job to renew all the certs.
--toPkcs Export the certificate and key to a pfx file.
--toPkcs Export the certificate and key to a pfx file.
--updateaccount Update account info.
--update-account Update account info.
--registeraccount Register account key.
--register-account Register account key.
--createAccountKey, -cak Create an account private key, professional use.
--createAccountKey, -cak Create an account private key, professional use.
--createDomainKey, -cdk Create an domain private key, professional use.
--createDomainKey, -cdk Create an domain private key, professional use.
--createCSR, -ccsr Create CSR , professional use.
--createCSR, -ccsr Create CSR , professional use.
...
@@ -3948,7 +3986,8 @@ Parameters:
...
@@ -3948,7 +3986,8 @@ Parameters:
--accountconf Specifies a customized account config file.
--accountconf Specifies a customized account config file.
--home Specifies the home dir for $PROJECT_NAME .
--home Specifies the home dir for $PROJECT_NAME .
--certhome Specifies the home dir to save all the certs, only valid for '--install' command.
--cert-home Specifies the home dir to save all the certs, only valid for '--install' command.
--config-home Specifies the home dir to save all the configurations.
--useragent Specifies the user agent string. it will be saved for future use too.
--useragent Specifies the user agent string. it will be saved for future use too.
--accountemail Specifies the account email for registering, Only valid for the '--install' command.
--accountemail Specifies the account email for registering, Only valid for the '--install' command.
--accountkey Specifies the account key path, Only valid for the '--install' command.
--accountkey Specifies the account key path, Only valid for the '--install' command.
...
@@ -3957,11 +3996,11 @@ Parameters:
...
@@ -3957,11 +3996,11 @@ Parameters:
--tlsport Specifies the standalone tls listening port. Only valid if the server is behind a reverse proxy or load balancer.
--tlsport Specifies the standalone tls listening port. Only valid if the server is behind a reverse proxy or load balancer.
--local-address Specifies the standalone/tls server listening address, in case you have multiple ip addresses.
--local-address Specifies the standalone/tls server listening address, in case you have multiple ip addresses.
--listraw Only used for '--list' command, list the certs in raw format.
--listraw Only used for '--list' command, list the certs in raw format.
--stopRenewOnError, -se Only valid for '--renewall' command. Stop if one cert has error in renewal.
--stopRenewOnError, -se Only valid for '--renew-all' command. Stop if one cert has error in renewal.
--insecure Do not check the server certificate, in some devices, the api server's certificate may not be trusted.
--insecure Do not check the server certificate, in some devices, the api server's certificate may not be trusted.
--ca-bundle Specifices the path to the CA certificate bundle to verify api server's certificate.
--ca-bundle Specifices the path to the CA certificate bundle to verify api server's certificate.
--nocron Only valid for '--install' command, which means: do not install the default cron job. In this case, the certs will not be renewed automatically.
--nocron Only valid for '--install' command, which means: do not install the default cron job. In this case, the certs will not be renewed automatically.
--ecc Specifies to use the ECC cert. Valid for '--installcert', '--renew', '--revoke', '--toPkcs' and '--createCSR'
--ecc Specifies to use the ECC cert. Valid for '--install-cert', '--renew', '--revoke', '--toPkcs' and '--createCSR'
--csr Specifies the input csr.
--csr Specifies the input csr.
--pre-hook Command to be run before obtaining any certificates.
--pre-hook Command to be run before obtaining any certificates.
--post-hook Command to be run after attempting to obtain/renew certificates. No matter the obain/renew is success or failed.
--post-hook Command to be run after attempting to obtain/renew certificates. No matter the obain/renew is success or failed.