Skip to content

Commit

Permalink
优化证书申请
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Sep 8, 2020
1 parent a4e6e9e commit a97327e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trojan/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func InstallTls() {
if !util.IsExists("/root/.acme.sh/acme.sh") {
util.RunWebShell("https://get.acme.sh")
}
Stop()
util.ExecCommand("systemctl stop trojan-web")
util.OpenPort(80)
util.ExecCommand(fmt.Sprintf("bash /root/.acme.sh/acme.sh --issue -d %s --debug --standalone --keylength ec-256", domain))
crtFile := "/root/.acme.sh/" + domain + "_ecc" + "/fullchain.cer"
Expand All @@ -120,6 +120,7 @@ func InstallTls() {
}
}
Restart()
util.ExecCommand("systemctl restart trojan-web")
fmt.Println()
}

Expand Down

0 comments on commit a97327e

Please sign in to comment.