Xray-1.2.13 (#358)

[fix] 修复证书签发与续签
pull/360/head
玖柒Max 2021-06-09 12:44:33 +08:00 committed by GitHub
parent 5c2d78f910
commit 437f2a8877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -382,7 +382,8 @@ function ssl_install() {
function acme() {
sed -i "6s/^/#/" "$nginx_conf"
sed -i "6a\\troot $website_dir;" "$nginx_conf"
sed -i "6a\\\troot $website_dir;" "$nginx_conf"
systemctl restart nginx
if "$HOME"/.acme.sh/acme.sh --issue -d "${domain}" --webroot "$website_dir" -k ec-256 --force; then
print_ok "SSL 证书生成成功"