Skip to content

Commit

Permalink
feat: mkdir cert path
Browse files Browse the repository at this point in the history
  • Loading branch information
pupilcc committed Jan 9, 2024
1 parent f908c5b commit 95afb49
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/ssl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 95afb49

Please sign in to comment.