code: func (m *Manager) UpdateConfigs(stores map[string]Store, configs map[string]TLS, certs []*Configuration) {
  	m.lock.Lock()
  	defer m.lock.Unlock()
  
  	m.configs = configs
  	m.storesConfig = stores
  	m.certs = certs
  
  	m.stores = make(map[string]*CertificateStore)
  	for storeName, storeConfig := range m.storesConfig {
  		var err error
  		m.stores[storeName], err = buildCertificateStore(storeConfig)
  		if err != nil {
  			log.Errorf("Error while creating certificate store %s", storeName)
  		}
  	}
  
  	storesCertificates := make(map[string]map[string]*tls.Certificate)
  	for _, conf := range certs {
  		if len(conf.Stores) == 0 {
  			if log.GetLevel() >= logrus.DebugLevel {
  				log.Debugf("No store is defined to add the certificate %s, it will be added to the default store.",
  					conf.Certificate.GetTruncatedCertificateName())
  			}
  			conf.Stores = []string{"default"}
  		}
  		for _, store := range conf.Stores {
  			if err := conf.Certificate.AppendCertificate(storesCertificates, store); err != nil {
  				log.Errorf("Unable to append certificate %s to store %s: %v", conf.Certificate.GetTruncatedCertificateName(), store, err)
  			}
  		}
  	}
  
  	for storeName, certs := range storesCertificates {
  		m.getStore(storeName).DynamicCerts.Set(certs)
  	}
  }
docs: // UpdateConfigs updates the TLS* configuration options