Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
2cbf1259
Unverified
Commit
2cbf1259
authored
Jul 07, 2022
by
Jordan ERNST
Committed by
GitHub
Jul 07, 2022
Browse files
Fix for ECC certificates
parent
e3cd96bf
Changes
1
Show whitespace changes
Inline
Side-by-side
deploy/mailcow.sh
View file @
2cbf1259
...
...
@@ -44,24 +44,14 @@ mailcow_deploy() {
return
1
fi
# ECC or RSA
length
=
$(
_readdomainconf Le_Keylength
)
if
_isEccKey
"
$length
"
;
then
_info
"ECC key type detected"
_cert_name_prefix
=
"ecdsa-"
else
_info
"RSA key type detected"
_cert_name_prefix
=
""
fi
_info
"Copying key and cert"
_real_key
=
"
$_ssl_path
/
${
_cert_name_prefix
}
key.pem"
_real_key
=
"
$_ssl_path
/key.pem"
if
!
cat
"
$_ckey
"
>
"
$_real_key
"
;
then
_err
"Error: write key file to:
$_real_key
"
return
1
fi
_real_fullchain
=
"
$_ssl_path
/
${
_cert_name_prefix
}
cert.pem"
_real_fullchain
=
"
$_ssl_path
/cert.pem"
if
!
cat
"
$_cfullchain
"
>
"
$_real_fullchain
"
;
then
_err
"Error: write cert file to:
$_real_fullchain
"
return
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment