1.1.2 删除测试签发部分代码

pull/190/head
wulabing 2020-02-22 21:27:42 +08:00
parent 2d0260303a
commit 82e25f4e75
1 changed files with 13 additions and 13 deletions

View File

@ -26,7 +26,7 @@ OK="${Green}[OK]${Font}"
Error="${Red}[错误]${Font}"
# 版本
shell_version="1.1.1"
shell_version="1.1.2"
shell_mode="None"
github_branch="master"
version_cmp="/tmp/version_cmp.tmp"
@ -467,18 +467,18 @@ port_exist_check(){
fi
}
acme(){
$HOME/.acme.sh/acme.sh --issue -d ${domain} --standalone -k ec-256 --force --test
if [[ $? -eq 0 ]];then
echo -e "${OK} ${GreenBG} SSL 证书测试签发成功,开始正式签发 ${Font}"
rm -rf "$HOME/.acme.sh/${domain}_ecc/${domain}.key"
rm -rf "$HOME/.acme.sh/${domain}_ecc/${domain}.cer"
sleep 2
else
echo -e "${Error} ${RedBG} SSL 证书测试签发失败 ${Font}"
rm -rf "$HOME/.acme.sh/${domain}_ecc/${domain}.key"
rm -rf "$HOME/.acme.sh/${domain}_ecc/${domain}.cer"
exit 1
fi
# $HOME/.acme.sh/acme.sh --issue -d ${domain} --standalone -k ec-256 --force --test
# if [[ $? -eq 0 ]];then
# echo -e "${OK} ${GreenBG} SSL 证书测试签发成功,开始正式签发 ${Font}"
# rm -rf "$HOME/.acme.sh/${domain}_ecc/${domain}.key"
# rm -rf "$HOME/.acme.sh/${domain}_ecc/${domain}.cer"
# sleep 2
# else
# echo -e "${Error} ${RedBG} SSL 证书测试签发失败 ${Font}"
# rm -rf "$HOME/.acme.sh/${domain}_ecc/${domain}.key"
# rm -rf "$HOME/.acme.sh/${domain}_ecc/${domain}.cer"
# exit 1
# fi
$HOME/.acme.sh/acme.sh --issue -d ${domain} --standalone -k ec-256 --force
if [[ $? -eq 0 ]];then