From a8c1f79186a659bb749eee4a3544d8a564219ac6 Mon Sep 17 00:00:00 2001 From: Misaka No <96560028+misakano7545@users.noreply.github.com> Date: Sat, 28 May 2022 20:30:36 +0800 Subject: [PATCH] =?UTF-8?q?Acme.sh=20=E8=AF=81=E4=B9=A6=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=20IPv6=20=E6=94=AF=E6=8C=81=20(#407)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update install.sh * Acme.sh IPv6 support --- install.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install.sh b/install.sh index 7a0df4c..9b5509c 100644 --- a/install.sh +++ b/install.sh @@ -422,6 +422,17 @@ function acme() { print_ok "已启动 wgcf-warp" fi fi + elif "$HOME"/.acme.sh/acme.sh --issue --insecure -d "${domain}" --webroot "$website_dir" -k ec-256 --force --listen-v6; then + print_ok "SSL 证书生成成功" + sleep 2 + if "$HOME"/.acme.sh/acme.sh --installcert -d "${domain}" --fullchainpath /ssl/xray.crt --keypath /ssl/xray.key --reloadcmd "systemctl restart xray" --ecc --force; then + print_ok "SSL 证书配置成功" + sleep 2 + if [[ -n $(type -P wgcf) && -n $(type -P wg-quick) ]]; then + wg-quick up wgcf >/dev/null 2>&1 + print_ok "已启动 wgcf-warp" + fi + fi else print_error "SSL 证书生成失败" rm -rf "$HOME/.acme.sh/${domain}_ecc"