From 77dc30fe6b5e3661990bd7f2a568a12595046032 Mon Sep 17 00:00:00 2001 From: pupilcc Date: Wed, 10 Jan 2024 00:11:36 +0800 Subject: [PATCH] fix: cert install path --- middleware/acme.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/acme.go b/middleware/acme.go index cb46e25..f893979 100644 --- a/middleware/acme.go +++ b/middleware/acme.go @@ -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()