From da47a9493b5d4a8b996883648bda407f6c63ed0c Mon Sep 17 00:00:00 2001 From: paniy Date: Thu, 29 Sep 2022 23:35:11 +0800 Subject: [PATCH] Slove CA Problem --- install.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/install.sh b/install.sh index 8355f5a..0cacd96 100644 --- a/install.sh +++ b/install.sh @@ -34,7 +34,7 @@ OK="${Green}[OK]${Font}" Error="${RedW}[错误]${Font}" Warning="${RedW}[警告]${Font}" -shell_version="1.9.4.0" +shell_version="1.9.4.1" shell_mode="未安装" tls_mode="None" ws_grpc_mode="None" @@ -1214,8 +1214,8 @@ port_exist_check() { acme() { systemctl restart nginx #暂时解决ca问题 - # if "$HOME"/.acme.sh/acme.sh --issue -d "${domain}" --standalone --server letsencrypt -k ec-256 --force --test; then - if "$HOME"/.acme.sh/acme.sh --issue -d ${domain} -w ${idleleo_conf_dir} --keylength ec-256 --force --test; then + if "$HOME"/.acme.sh/acme.sh --issue -d ${domain} -w ${idleleo_conf_dir} --server letsencrypt --keylength ec-256 --force --test; then + #if "$HOME"/.acme.sh/acme.sh --issue -d ${domain} -w ${idleleo_conf_dir} --keylength ec-256 --force --test; then echo -e "${OK} ${GreenBG} SSL 证书测试签发成功, 开始正式签发 ${Font}" rm -rf "$HOME/.acme.sh/${domain}_ecc" else @@ -1224,8 +1224,8 @@ acme() { exit 1 fi - # if "$HOME"/.acme.sh/acme.sh --issue -d "${domain}" --standalone --server letsencrypt -k ec-256 --force; then - if "$HOME"/.acme.sh/acme.sh --issue -d ${domain} -w ${idleleo_conf_dir} --keylength ec-256 --force; then + if "$HOME"/.acme.sh/acme.sh --issue -d ${domain} -w ${idleleo_conf_dir} --server letsencrypt --keylength ec-256 --force; then + #if "$HOME"/.acme.sh/acme.sh --issue -d ${domain} -w ${idleleo_conf_dir} --keylength ec-256 --force; then echo -e "${OK} ${GreenBG} SSL 证书生成成功 ${Font}" mkdir -p ${ssl_chainpath} if "$HOME"/.acme.sh/acme.sh --installcert -d ${domain} --fullchainpath ${ssl_chainpath}/xray.crt --keypath ${ssl_chainpath}/xray.key --ecc --force; then @@ -2648,10 +2648,10 @@ install_xray_ws_tls() { xray_conf_add tls_type basic_information - service_restart enable_process_systemd acme_cron_update auto_update + service_restart vless_link_image_choice show_information } @@ -2683,10 +2683,10 @@ install_xray_xtls() { xray_conf_add tls_type basic_information - service_restart enable_process_systemd acme_cron_update auto_update + service_restart vless_link_image_choice show_information } @@ -2893,7 +2893,7 @@ show_help() { echo "usage: idleleo [OPTION]" echo echo 'OPTION:' - echo ' -1, --install-tls 安装 Xray (Nginx+ws/gRPC+tls)' + echo ' -1, --install-tls 安装 Xray (Nginx+ws/gRPC+TLS)' echo ' -2, --install-xtls 安装 Xray (XTLS+Nginx+ws/gRPC)' echo ' -3, --install-none 安装 Xray (ws/gRPC ONLY)' echo ' -4, --add-upstream 变更 Nginx 负载均衡配置' @@ -3070,7 +3070,7 @@ menu() { echo -e "${Green}1.${Font} 升级 Xray" echo -e "${Green}2.${Font} 升级 Nginx" echo -e "—————————————— ${GreenW}安装向导${Font} ——————————————" - echo -e "${Green}3.${Font} 安装 Xray (Nginx+ws/gRPC+tls)" + echo -e "${Green}3.${Font} 安装 Xray (Nginx+ws/gRPC+TLS)" echo -e "${Green}4.${Font} 安装 Xray (XTLS+Nginx+ws/gRPC)" echo -e "${Green}5.${Font} 安装 Xray (ws/gRPC ONLY)" echo -e "—————————————— ${GreenW}配置变更${Font} ——————————————"