This commit is contained in:
neil committed 2020-12-07 21:41:08 +08:00
1 parent a0c2d312e9
commit 32b62d6d4f
1 file changed
+8 -9
+8 -9
View File
@@ -31,7 +31,7 @@ mailcow_deploy() {
if [ -f "${_mailcow_path}/generate_config.sh" ]; then
_ssl_path="${_mailcow_path}/data/assets/ssl/"
else
_ssl_path="${_mailcow_path}"
_ssl_path="${_mailcow_path}"
fi
if [ ! -d "$_ssl_path" ]; then
@@ -41,17 +41,16 @@ mailcow_deploy() {
# ECC or RSA
if [ -z "${Le_Keylength}" ]; then
Le_Keylength=""
Le_Keylength=""
fi
if _isEccKey "${Le_Keylength}"; then
_info "ECC key type detected"
_cert_type="ecdsa"
_cert_name_prefix="ecdsa-"
_info "ECC key type detected"
_cert_type="ecdsa"
_cert_name_prefix="ecdsa-"
else
_info "RSA key type detected"
_cert_type="rsa"
_cert_name_prefix=""
_info "RSA key type detected"
_cert_type="rsa"
_cert_name_prefix=""
fi
_info "Copying key and cert"
_real_key="$_ssl_path/${_cert_name_prefix}key.pem"