refactor
Build / Build (push) Successful in 17s

This commit is contained in:
wt committed 2025-07-21 22:16:54 +07:00
1 parent e6526fb780
commit d5da23849f
8 files changed
+16 -46

No files matched your search

+2 -2
View File
@@ -5,7 +5,7 @@ import (
"fmt"
"net/http"
"os"
"scm/utils"
"scm/crt"
"github.com/google/uuid"
)
@@ -47,7 +47,7 @@ func Certs(w http.ResponseWriter, r *http.Request) {
new_cert["href"] = fmt.Sprintf("https://%s", entry.Name())
new_cert["cert"] = string(certdata)
new_cert["key"] = string(keydata)
new_cert["certinfo"] = utils.ParseCert(fmt.Sprintf("%s/%s/%s.crt", os.Getenv("CERTS_PATH"), entry.Name(), entry.Name()))
new_cert["certinfo"] = crt.ParseCert(fmt.Sprintf("%s/%s/%s.crt", os.Getenv("CERTS_PATH"), entry.Name(), entry.Name()))
certs_info = append(certs_info, new_cert)
}
}