mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
avoid generating certs for broker on pull
This commit is contained in:
parent
526836fb23
commit
3a8cb6a40e
1 changed files with 0 additions and 21 deletions
|
@ -90,29 +90,8 @@ func Pull(cfg *config.ClientConfig) error {
|
|||
|
||||
currentServers[currCfg.Server.Server] = *currCfg
|
||||
}
|
||||
// //generate new client key if one doesn' exist
|
||||
// var private *ed25519.PrivateKey
|
||||
// private, err = tls.ReadKeyFromFile(ncutils.GetNetclientPath() + ncutils.GetSeparator() + "client.key")
|
||||
// if err != nil {
|
||||
// _, newKey, err := ed25519.GenerateKey(rand.Reader)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// if err := tls.SaveKeyToFile(ncutils.GetNetclientPath(), ncutils.GetSeparator()+"client.key", newKey); err != nil {
|
||||
// return err
|
||||
// }
|
||||
// private = &newKey
|
||||
// }
|
||||
// // re-register with server -- get new certs for broker
|
||||
// for _, clientCfg := range currentServers {
|
||||
// if err = functions.RegisterWithServer(private, &clientCfg); err != nil {
|
||||
// logger.Log(0, "registration error", err.Error())
|
||||
// } else {
|
||||
daemon.Restart()
|
||||
// }
|
||||
// }
|
||||
logger.Log(1, "reset network", cfg.Network, "and peer configs")
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue