Manual Renew knows if DNS Challenge is required

This commit is contained in:
Linard Schwendener
2024-05-03 00:57:47 +02:00
parent 8854a38f49
commit e1b512f78f
4 changed files with 17 additions and 6 deletions

View File

@@ -12,6 +12,7 @@ import (
"strings"
"time"
"imuslab.com/zoraxy/mod/acme"
"imuslab.com/zoraxy/mod/utils"
)
@@ -46,6 +47,7 @@ func handleListCertificate(w http.ResponseWriter, r *http.Request) {
LastModifiedDate string
ExpireDate string
RemainingDays int
DNS bool
}
results := []*CertInfo{}
@@ -81,12 +83,16 @@ func handleListCertificate(w http.ResponseWriter, r *http.Request) {
}
}
}
certInfoFilename := filepath.Join(tlsCertManager.CertStore, filename+".json")
certInfo, err := acme.LoadCertInfoJSON(certInfoFilename)
SystemWideLogger.PrintAndLog("Could not Load CertInfoJson", certFilepath, err)
thisCertInfo := CertInfo{
Domain: filename,
LastModifiedDate: modifiedTime,
ExpireDate: certExpireTime,
RemainingDays: expiredIn,
DNS: certInfo.DNS,
}
results = append(results, &thisCertInfo)