code: func addCertsToConfig(config fab.EndpointConfig, pemCertsList [][]byte) {
  
  	if len(pemCertsList) == 0 {
  		return
  	}
  
  	var certs []*x509.Certificate
  	for _, pemCerts := range pemCertsList {
  		for len(pemCerts) > 0 {
  			var block *pem.Block
  			block, pemCerts = pem.Decode(pemCerts)
  			if block == nil {
  				break
  			}
  			if block.Type != "CERTIFICATE" || len(block.Headers) != 0 {
  				continue
  			}
  
  			cert, err := x509.ParseCertificate(block.Bytes)
  			if err != nil {
  				continue
  			}
  			err = verifier.ValidateCertificateDates(cert)
  			if err != nil {
  				logger.Warn("%v", err)
  				continue
  			}
  
  			certs = append(certs, cert)
  		}
  	}
  
  	config.TLSCACertPool().Add(certs...)
  }
docs: //addCertsToConfig adds cert bytes to config TLSCACertPool