Ver código fonte

always save certs on server start

0xdcarns 3 anos atrás
pai
commit
4159aa5c7d
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      main.go

+ 3 - 0
main.go

@@ -276,6 +276,9 @@ func genCerts() error {
 	if err := serverctl.SaveCert(functions.GetNetmakerPath()+ncutils.GetSeparator(), tls.SERVER_PEM_NAME, cert); err != nil {
 		return err
 	}
+	if err := serverctl.SaveCert(functions.GetNetmakerPath()+ncutils.GetSeparator(), tls.SERVER_PEM_NAME, cert); err != nil {
+		return err
+	}
 
 	// == SERVER-CLIENT connection cert handling ==