renamed to tls instead of keys

This commit is contained in:
Christian Goll
2025-12-04 08:54:33 +01:00
committed by Jonathon Anderson
parent c4b8595f20
commit bcf53f7efd
12 changed files with 31 additions and 31 deletions

View File

@@ -117,7 +117,7 @@ func CobraRunE(cmd *cobra.Command, args []string) (err error) {
}
tlsConfig := &tls.Config{}
if conf.Warewulf.EnableHttps() {
if conf.Warewulf.EnableTLS() {
caCert, err := os.ReadFile("/warewulf/keys/warewulf.crt")
if err != nil {
wwlog.Error("failed to read ca cert: %s", err)
@@ -260,7 +260,7 @@ func CobraRunE(cmd *cobra.Command, args []string) (err error) {
port := conf.Warewulf.Port
scheme := "http"
if conf.Warewulf.EnableHttps() {
if conf.Warewulf.EnableTLS() {
port = conf.Warewulf.SecurePort
scheme = "https"
}