From b80f0ab4df656c9cfcd78b8e411f072c9047ec81 Mon Sep 17 00:00:00 2001 From: Azoo224 Date: Sat, 16 Nov 2024 17:31:34 +0800 Subject: [PATCH 1/2] update CF_ssl func --- x-ui.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x-ui.sh b/x-ui.sh index b99d801dc..ffe53b567 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -1183,8 +1183,10 @@ ssl_cert_issue_CF() { fi # Install the certificate + mkdir -p ${certPath}/${CF_Domain} + ~/.acme.sh/acme.sh --installcert -d ${CF_Domain} -d *.${CF_Domain} \ - --cert-file ${certPath}/${CF_Domain}/fullchain.pem \ + --fullchain-file ${certPath}/${CF_Domain}/fullchain.pem \ --key-file ${certPath}/${CF_Domain}/privkey.pem if [ $? -ne 0 ]; then From 5bcaa7e8f5f8402fbfad23eefe2face39a23ace1 Mon Sep 17 00:00:00 2001 From: Azoo224 Date: Sat, 16 Nov 2024 17:53:15 +0800 Subject: [PATCH 2/2] update CF_ssl func --- x-ui.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x-ui.sh b/x-ui.sh index ffe53b567..4b2e8a202 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -1184,6 +1184,10 @@ ssl_cert_issue_CF() { # Install the certificate mkdir -p ${certPath}/${CF_Domain} + if [ $? -ne 0 ]; then + LOGE "Failed to create directory: ${certPath}/${CF_Domain}" + exit 1 + fi ~/.acme.sh/acme.sh --installcert -d ${CF_Domain} -d *.${CF_Domain} \ --fullchain-file ${certPath}/${CF_Domain}/fullchain.pem \