code: func (xcg *X509CertGenerator) ValidateCertificate(addr string, authOptions *auth.Options) (bool, error) {
  	tlsConfig, err := xcg.ReadTLSConfig(addr, authOptions)
  	if err != nil {
  		return false, err
  	}
  
  	dialer := &net.Dialer{
  		Timeout: time.Second * 20,
  	}
  
  	_, err = tls.DialWithDialer(dialer, "tcp", addr, tlsConfig)
  	if err != nil {
  		return false, err
  	}
  
  	return true, nil
  }
docs: // ValidateCertificate validate the certificate installed on the vm.