code: func (info *HostCertificateInfo) Write(w io.Writer) error {
  	tw := tabwriter.NewWriter(w, 2, 0, 2, ' ', 0)
  
  	s := func(val string) string {
  		if val != "" {
  			return val
  		}
  		return "<Not Part Of Certificate>"
  	}
  
  	ss := func(val []string) string {
  		return s(strings.Join(val, ","))
  	}
  
  	name := func(n *pkix.Name) {
  		fmt.Fprintf(tw, "  Common Name (CN):\t%s\n", s(n.CommonName))
  		fmt.Fprintf(tw, "  Organization (O):\t%s\n", ss(n.Organization))
  		fmt.Fprintf(tw, "  Organizational Unit (OU):\t%s\n", ss(n.OrganizationalUnit))
  	}
  
  	status := info.Status
  	if info.Err != nil {
  		status = fmt.Sprintf("ERROR %s", info.Err)
  	}
  	fmt.Fprintf(tw, "Certificate Status:\t%s\n", status)
  
  	fmt.Fprintln(tw, "Issued To:\t")
  	name(info.SubjectName())
  
  	fmt.Fprintln(tw, "Issued By:\t")
  	name(info.IssuerName())
  
  	fmt.Fprintln(tw, "Validity Period:\t")
  	fmt.Fprintf(tw, "  Issued On:\t%s\n", info.NotBefore)
  	fmt.Fprintf(tw, "  Expires On:\t%s\n", info.NotAfter)
  
  	if info.ThumbprintSHA1 != "" {
  		fmt.Fprintln(tw, "Thumbprints:\t")
  		if info.ThumbprintSHA256 != "" {
  			fmt.Fprintf(tw, "  SHA-256 Thumbprint:\t%s\n", info.ThumbprintSHA256)
  		}
  		fmt.Fprintf(tw, "  SHA-1 Thumbprint:\t%s\n", info.ThumbprintSHA1)
  	}
  
  	return tw.Flush()
  }
docs: // Write outputs info similar to the Chrome Certificate Viewer.