code: func (kern *Kernel) LoadKeysFromConfig(conf *keys.KeysConfig) (err error) {
  	kern.keyStore = keys.NewKeyStore(conf.KeysDirectory, conf.AllowBadFilePermissions)
  	if conf.RemoteAddress != "" {
  		kern.keyClient, err = keys.NewRemoteKeyClient(conf.RemoteAddress, kern.Logger)
  		if err != nil {
  			return err
  		}
  	} else {
  		kern.keyClient = keys.NewLocalKeyClient(kern.keyStore, kern.Logger)
  	}
  	return nil
  }
docs: // LoadKeysFromConfig sets the keyClient & keyStore based on the given config