Skip to content

Commit

Permalink
优化证书申请
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Aug 24, 2020
1 parent 4492d53 commit a4e6e9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trojan/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func InstallTls() {
if !util.IsExists("/root/.acme.sh/acme.sh") {
util.RunWebShell("https://get.acme.sh")
}
Stop()
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 Down

0 comments on commit a4e6e9e

Please sign in to comment.