1.1.3 恢复测试签发,继续尝试修复key缺失问题

pull/190/head
wulabing 2020-02-23 23:22:52 +08:00
parent f95fad34a5
commit 7d2a5cbbc5
1 changed files with 12 additions and 13 deletions

View File

@ -467,18 +467,16 @@ port_exist_check(){
fi fi
} }
acme(){ acme(){
# $HOME/.acme.sh/acme.sh --issue -d ${domain} --standalone -k ec-256 --force --test $HOME/.acme.sh/acme.sh --issue -d ${domain} --standalone -k ec-256 --force --test
# if [[ $? -eq 0 ]];then if [[ $? -eq 0 ]];then
# echo -e "${OK} ${GreenBG} SSL 证书测试签发成功,开始正式签发 ${Font}" echo -e "${OK} ${GreenBG} SSL 证书测试签发成功,开始正式签发 ${Font}"
# rm -rf "$HOME/.acme.sh/${domain}_ecc/${domain}.key" rm -rf "$HOME/.acme.sh/${domain}_ecc"
# rm -rf "$HOME/.acme.sh/${domain}_ecc/${domain}.cer" sleep 2
# sleep 2 else
# else echo -e "${Error} ${RedBG} SSL 证书测试签发失败 ${Font}"
# echo -e "${Error} ${RedBG} SSL 证书测试签发失败 ${Font}" rm -rf "$HOME/.acme.sh/${domain}_ecc"
# rm -rf "$HOME/.acme.sh/${domain}_ecc/${domain}.key" exit 1
# rm -rf "$HOME/.acme.sh/${domain}_ecc/${domain}.cer" fi
# exit 1
# fi
$HOME/.acme.sh/acme.sh --issue -d ${domain} --standalone -k ec-256 --force $HOME/.acme.sh/acme.sh --issue -d ${domain} --standalone -k ec-256 --force
if [[ $? -eq 0 ]];then if [[ $? -eq 0 ]];then
@ -492,7 +490,7 @@ acme(){
fi fi
else else
echo -e "${Error} ${RedBG} SSL 证书生成失败 ${Font}" echo -e "${Error} ${RedBG} SSL 证书生成失败 ${Font}"
rm -rf "$HOME/.acme.sh/${domain}_ecc/${domain}.key" && rm -rf "$HOME/.acme.sh/${domain}_ecc/${domain}.cer" rm -rf "$HOME/.acme.sh/${domain}_ecc"
exit 1 exit 1
fi fi
} }
@ -807,6 +805,7 @@ uninstall_all(){
systemctl daemon-reload systemctl daemon-reload
echo -e "${OK} ${GreenBG} 已卸载SSL证书文件已保留 ${Font}" echo -e "${OK} ${GreenBG} 已卸载SSL证书文件已保留 ${Font}"
} }
judge_mode(){ judge_mode(){
if [ -f $v2ray_bin_file ] if [ -f $v2ray_bin_file ]
then then