code: func FromOrdererConfig(ordererCfg *fab.OrdererConfig) Option {
  	return func(o *Orderer) error {
  		o.url = ordererCfg.URL
  		o.tlsCACert = ordererCfg.TLSCACert
  
  		if ordererCfg.GRPCOptions["allow-insecure"] == false {
  			//verify if certificate was expired or not yet valid
  			err := verifier.ValidateCertificateDates(o.tlsCACert)
  			if err != nil {
  				//log this error
  				logger.Warn(err)
  			}
  		}
  
  		o.serverName = getServerNameOverride(ordererCfg)
  		o.kap = getKeepAliveOptions(ordererCfg)
  		o.failFast = getFailFast(ordererCfg)
  		o.allowInsecure = isInsecureConnectionAllowed(ordererCfg)
  
  		return nil
  	}
  }
docs: // FromOrdererConfig is a functional option for the orderer.New constructor that configures a new orderer
  // from a apiconfig.OrdererConfig struct