code: func TLSCertInfo(cert *tls.Certificate) string {
  	x509cert, err := x509.ParseCertificate(cert.Certificate[0])
  	if err != nil {
  		return err.Error()
  	}
  	return CertInfo(x509cert)
  }
docs: // TLSCertInfo returns diagnostic information about certificate