Added default Ca features

+ Added default CA feature
+ Fixed RWD issue in TLS cert table
+ Optimized ACME UI in the TLS page
This commit is contained in:
Toby Chui
2023-09-25 20:54:50 +08:00
parent fd6ba56143
commit bda47fc36b
9 changed files with 124 additions and 18 deletions

View File

@@ -361,8 +361,8 @@ func IsPortInUse(port int) bool {
}
// Load cert information from json file
func loadCertInfoJSON(filename string) (*CertificateInfoJSON, error) {
certInfoBytes, err := os.ReadFile(filename)
if err != nil {
return nil, err

View File

@@ -49,3 +49,8 @@ func loadCAApiServerFromName(caName string) (string, error) {
return val, nil
}
func IsSupportedCA(caName string) bool {
_, err := loadCAApiServerFromName(caName)
return err == nil
}