Update src/mod/tlscert/handler.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Toby Chui
2025-11-01 14:48:55 +08:00
committed by GitHub
parent 662496922d
commit ca37a4c7c7

View File

@@ -88,7 +88,6 @@ func (m *Manager) SetCertAsDefault(w http.ResponseWriter, r *http.Request) {
defaultPriKey := filepath.Join(m.CertStore, "default.key") defaultPriKey := filepath.Join(m.CertStore, "default.key")
defaultJSON := filepath.Join(m.CertStore, "default.json") defaultJSON := filepath.Join(m.CertStore, "default.json")
fmt.Println(defaultPubKey, defaultPriKey, defaultJSON)
if utils.FileExists(defaultPubKey) && utils.FileExists(defaultPriKey) { if utils.FileExists(defaultPubKey) && utils.FileExists(defaultPriKey) {
//Move the existing default cert to its original name //Move the existing default cert to its original name
certBytes, err := os.ReadFile(defaultPubKey) certBytes, err := os.ReadFile(defaultPubKey)