Xray-1.3.0

[break-change] 修复 ACME 申请证书上游切换默认CA导致的证书无法签发问题
pull/360/head
wulabing 2021-06-13 17:02:14 +08:00
parent b4bf39d0f8
commit a7bb0f56c6
No known key found for this signature in database
GPG Key ID: 213391AFDF73AE00
1 changed files with 10 additions and 1 deletions

View File

@ -27,7 +27,7 @@ OK="${Green}[OK]${Font}"
ERROR="${Red}[ERROR]${Font}"
# 变量
shell_version="1.2.17"
shell_version="1.3.0"
github_branch="main"
xray_conf_dir="/usr/local/etc/xray"
website_dir="/www/xray_web/"
@ -384,6 +384,15 @@ 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