Skip to content

Commit

Permalink
fix: cert install path
Browse files Browse the repository at this point in the history
  • Loading branch information
pupilcc committed Jan 9, 2024
1 parent f020bcf commit 77dc30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/acme.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func Issue(name string) {

func Install(name string, id string) {
logger := GetLogger()
cmd := exec.Command(filepath.Join(usr.HomeDir, ".acme.sh/acme.sh"), "--install-cert", "-d", name, "--key-file", service.CertPath+id+".key", "--fullchain-file", service.CertPath+id+".crt")
cmd := exec.Command(filepath.Join(usr.HomeDir, ".acme.sh/acme.sh"), "--install-cert", "-d", name, "--key-file", filepath.Join(service.CertPath, id+".key"), "--fullchain-file", filepath.Join(service.CertPath, id+".crt"))
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stdout
err := cmd.Start()
Expand Down

0 comments on commit 77dc30f

Please sign in to comment.