generate only if not present

This commit is contained in:
Willy Kloucek
2020-12-15 10:06:35 +01:00
parent b42e507ab5
commit 368d6db248
2 changed files with 8 additions and 4 deletions
-1
View File
@@ -188,7 +188,6 @@ func Server(cfg *config.Config) *cli.Command {
}
if lscfg.Enabled {
// GenCert has side effects as it writes 2 files to the binary running location
if err := crypto.GenCert(cfg.Ldaps.Cert, cfg.Ldaps.Key, logger); err != nil {
logger.Fatal().Err(err).Msgf("Could not generate test-certificate")
}