Skip to content

Commit 799e402

Browse files
authored
Merge pull request #4536 from acmesh-official/dev
sync
2 parents 132d5e8 + ce629e8 commit 799e402

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

acme.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2873,7 +2873,7 @@ _initpath() {
28732873

28742874
if _isEccKey "$_ilength"; then
28752875
DOMAIN_PATH="$domainhomeecc"
2876-
else
2876+
elif [ -z "$__SELECTED_RSA_KEY" ]; then
28772877
if [ ! -d "$domainhome" ] && [ -d "$domainhomeecc" ]; then
28782878
_info "The domain '$domain' seems to have a ECC cert already, lets use ecc cert."
28792879
DOMAIN_PATH="$domainhomeecc"
@@ -7518,6 +7518,9 @@ _process() {
75187518
--keylength | -k)
75197519
_keylength="$2"
75207520
shift
7521+
if [ "$_keylength" ] && ! _isEccKey "$_keylength"; then
7522+
export __SELECTED_RSA_KEY=1
7523+
fi
75217524
;;
75227525
-ak | --accountkeylength)
75237526
_accountkeylength="$2"

0 commit comments

Comments
 (0)