mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-09-20 11:09:52 +02:00
Manual Renew knows if DNS Challenge is required
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user