From 95afb49d0997b78e81e77134679ddd4eae546da8 Mon Sep 17 00:00:00 2001 From: pupilcc Date: Wed, 10 Jan 2024 00:46:33 +0800 Subject: [PATCH] feat: mkdir cert path --- web/ssl.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/ssl.go b/web/ssl.go index 1c7322c..f8a3390 100644 --- a/web/ssl.go +++ b/web/ssl.go @@ -91,6 +91,12 @@ func generate(c echo.Context) error { } id := util.GenerateID() + + err := os.MkdirAll(service.CertPath, 0755) + if err != nil { + fmt.Println("错误:", err) + } + middleware.Issue(certCommand.Domain) middleware.Install(certCommand.Domain, id) service.SaveUuid(certCommand.Domain, id)