code: func (xcg *X509CertGenerator) ReadTLSConfig(addr string, authOptions *auth.Options) (*tls.Config, error) {
  	caCertPath := authOptions.CaCertPath
  	clientCertPath := authOptions.ClientCertPath
  	clientKeyPath := authOptions.ClientKeyPath
  
  	log.Debugf("Reading CA certificate from %s", caCertPath)
  	caCert, err := ioutil.ReadFile(caCertPath)
  	if err != nil {
  		return nil, err
  	}
  
  	log.Debugf("Reading client certificate from %s", clientCertPath)
  	clientCert, err := ioutil.ReadFile(clientCertPath)
  	if err != nil {
  		return nil, err
  	}
  
  	log.Debugf("Reading client key from %s", clientKeyPath)
  	clientKey, err := ioutil.ReadFile(clientKeyPath)
  	if err != nil {
  		return nil, err
  	}
  
  	return xcg.getTLSConfig(caCert, clientCert, clientKey, false)
  }
docs: // ReadTLSConfig reads the tls config for a machine.