Merge f75e4d7db81d80dacb1ff77e1521aa4de846a2bd into 6dbe49089e2ed8e53d5110c528e2f7099c968b3c

This commit is contained in:
nichivo 2025-02-06 17:56:38 +08:00 committed by GitHub
commit ed65be1c29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

30
acme.sh
View File

@ -2928,9 +2928,15 @@ _initpath() {
return 0
fi
if [ -z "$_certname" ]; then
CERT_NAME="$domain"
else
CERT_NAME="$_certname"
fi
if [ -z "$DOMAIN_PATH" ]; then
domainhome="$CERT_HOME/$domain"
domainhomeecc="$CERT_HOME/$domain$ECC_SUFFIX"
domainhome="$CERT_HOME/$CERT_NAME"
domainhomeecc="$CERT_HOME/$CERT_NAME$ECC_SUFFIX"
DOMAIN_PATH="$domainhome"
@ -2951,21 +2957,21 @@ _initpath() {
fi
if [ -z "$DOMAIN_CONF" ]; then
DOMAIN_CONF="$DOMAIN_PATH/$domain.conf"
DOMAIN_CONF="$DOMAIN_PATH/$CERT_NAME.conf"
fi
if [ -z "$DOMAIN_SSL_CONF" ]; then
DOMAIN_SSL_CONF="$DOMAIN_PATH/$domain.csr.conf"
DOMAIN_SSL_CONF="$DOMAIN_PATH/$CERT_NAME.csr.conf"
fi
if [ -z "$CSR_PATH" ]; then
CSR_PATH="$DOMAIN_PATH/$domain.csr"
CSR_PATH="$DOMAIN_PATH/$CERT_NAME.csr"
fi
if [ -z "$CERT_KEY_PATH" ]; then
CERT_KEY_PATH="$DOMAIN_PATH/$domain.key"
CERT_KEY_PATH="$DOMAIN_PATH/$CERT_NAME.key"
fi
if [ -z "$CERT_PATH" ]; then
CERT_PATH="$DOMAIN_PATH/$domain.cer"
CERT_PATH="$DOMAIN_PATH/$CERT_NAME.cer"
fi
if [ -z "$CA_CERT_PATH" ]; then
CA_CERT_PATH="$DOMAIN_PATH/ca.cer"
@ -2974,10 +2980,10 @@ _initpath() {
CERT_FULLCHAIN_PATH="$DOMAIN_PATH/fullchain.cer"
fi
if [ -z "$CERT_PFX_PATH" ]; then
CERT_PFX_PATH="$DOMAIN_PATH/$domain.pfx"
CERT_PFX_PATH="$DOMAIN_PATH/$CERT_NAME.pfx"
fi
if [ -z "$CERT_PKCS8_PATH" ]; then
CERT_PKCS8_PATH="$DOMAIN_PATH/$domain.pkcs8"
CERT_PKCS8_PATH="$DOMAIN_PATH/$CERT_NAME.pkcs8"
fi
if [ -z "$TLS_CONF" ]; then
@ -7016,6 +7022,7 @@ Parameters:
--accountconf <file> Specifies a customized account config file.
--home <directory> Specifies the home dir for $PROJECT_NAME.
--cert-home <directory> Specifies the home dir to save all the certs, only valid for '--install' command.
--cert-name <name> Specifies the name of the dir and base filenames of the certs, only valid for '--issue' command.
--config-home <directory> Specifies the home dir to save all the configurations.
--useragent <string> Specifies the user agent string. it will be saved for future use too.
-m, --email <email> Specifies the account email, only valid for the '--install' and '--update-account' command.
@ -7308,6 +7315,7 @@ _process() {
_accountemail=""
_accountkey=""
_certhome=""
_certname=""
_confighome=""
_httpport=""
_tlsport=""
@ -7631,6 +7639,10 @@ _process() {
export CERT_HOME="$_certhome"
shift
;;
--cert-name | --certname)
_certname="$2"
shift
;;
--config-home)
_confighome="$2"
export LE_CONFIG_HOME="$_confighome"