Bug fixes for referening and not copying objects and few others.

This commit is contained in:
2025-08-02 13:51:14 +02:00
parent b0f0467346
commit 1991963cab
2 changed files with 16 additions and 17 deletions

4
ca.go
View File

@@ -72,7 +72,7 @@ func (def *CertificateDefinition) FillDefaultValues(defaults *CertificateDefault
def.Validity = defaults.Validity
}
if len(def.SAN) == 0 && len(defaults.SAN) > 0 {
def.SAN = defaults.SAN
def.SAN = append([]string(nil), defaults.SAN...)
}
}
@@ -705,7 +705,7 @@ func IssueCertificate(certDef CertificateDefinition, overwrite bool, dryRun bool
fmt.Printf("%s certificate and key for '%s' generated.\n", certDef.Type, certDef.Subject)
if err := SaveCAState(); err != nil {
fmt.Printf("Error saving CA state: %v\n", err)
fmt.Printf("Error saving CA state: %v", err)
}
return nil