From 4a03d8ec64d24e7e9377b7aca2202c709aafb486 Mon Sep 17 00:00:00 2001 From: jiangyang Date: Sun, 31 Jul 2022 20:27:36 +0800 Subject: [PATCH] Update trojan_centos7.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复https证书申请失败问题 --- trojan_centos7.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/trojan_centos7.sh b/trojan_centos7.sh index f285d45..55ec2c3 100644 --- a/trojan_centos7.sh +++ b/trojan_centos7.sh @@ -46,6 +46,10 @@ if [ "$CHECK" == "SELINUX=permissive" ]; then fi yum -y install bind-utils wget unzip zip curl tar green "=======================" +yellow "请输入申请https证书的邮箱" +green "=======================" +read your_email +green "=======================" yellow "请输入绑定到本VPS的域名" green "=======================" read your_domain @@ -67,7 +71,7 @@ if [ $real_addr == $local_addr ] ; then systemctl restart nginx.service #申请https证书 mkdir /usr/src/trojan-cert - curl https://get.acme.sh | sh + curl https://get.acme.sh | sh -e $your_email ~/.acme.sh/acme.sh --issue -d $your_domain --webroot /usr/share/nginx/html/ ~/.acme.sh/acme.sh --installcert -d $your_domain \ --key-file /usr/src/trojan-cert/private.key \