From 49797c8bcf276512252c1571abfa648d4a7240a4 Mon Sep 17 00:00:00 2001 From: wulabing Date: Sun, 13 Jun 2021 21:09:56 +0800 Subject: [PATCH] Xray-1.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [fix] 修复 ACME 申请证书上游切换默认CA导致的证书无法签发问题 --- install.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/install.sh b/install.sh index 609470c..35a5f2d 100644 --- a/install.sh +++ b/install.sh @@ -27,7 +27,7 @@ OK="${Green}[OK]${Font}" ERROR="${Red}[ERROR]${Font}" # 变量 -shell_version="1.3.0" +shell_version="1.3.1" github_branch="main" xray_conf_dir="/usr/local/etc/xray" website_dir="/www/xray_web/" @@ -374,7 +374,7 @@ function ssl_install() { # fi # judge "安装 SSL 证书生成脚本依赖" - curl https://get.acme.sh | sh + curl https://get.acme.sh | sh -s email=my@example.com judge "安装 SSL 证书生成脚本" } @@ -384,15 +384,6 @@ function acme() { sed -i "6a\\\troot $website_dir;" "$nginx_conf" systemctl restart nginx - if "$HOME"/.acme.sh/acme.sh --register-account -m test@example.com; then - print_ok "acme 账号注册成功" - sleep 1 - else - print_error "acme 账号注册失败" - exit 1 - fi - - if "$HOME"/.acme.sh/acme.sh --issue -d "${domain}" --webroot "$website_dir" -k ec-256 --force; then print_ok "SSL 证书生成成功" sleep 2