conf.Logger.Warn("Authentication of incoming session requests disabled: anyone who can reach this server can use it")
havekeys,err:=conf.HavePrivateKeys()
iferr!=nil{
returnerr
}
iflen(conf.Permissions.Issuing)>0&&havekeys{
ifconf.separateClientServer()||!conf.Production{
conf.Logger.Warn("Issuance enabled and private keys installed: anyone who can reach this server can use it to issue attributes")
}else{
returnerrors.New("If issuing is enabled in production mode, requestor authentication must be enabled, or client_listen_addr and client_port must be used")
}
}
}else{
iflen(conf.Requestors)==0{
returnerrors.New("No requestors configured; either configure one or more requestors or disable requestor authentication")