code: func WriteCertificateMetadata(w io.Writer, cert *CertificateMetadata) error {
  	x509Cert := cert.cert.X509()
  	_, err := fmt.Fprintf(w, `Subject: %s
  Issuer: %s
  	Not Before: %s
  	Not After: %s
  `, (cert.Subject),
  		(cert.Issuer),
  		x509Cert.NotBefore.UTC().Format(common.DateFormat),
  		x509Cert.NotAfter.UTC().Format(common.DateFormat),
  	)
  	if err != nil {
  		return err
  	}
  
  	_, err = fmt.Fprintf(w, "\tReleases:\n")
  	if err != nil {
  		return err
  	}
  
  	for _, rel := range cert.Releases {
  		_, err = fmt.Fprintf(w, "\t\t- %s %s (%s)\n",
  			rel.Version, rel.Bundle,
  			time.Unix(rel.ReleasedAt, 0).UTC().Format(common.DateFormat))
  		if err != nil {
  			break
  		}
  	}
  
  	return err
  }
docs: // WriteCertificateMetadata pretty prints the certificate metadata to
  // the given io.Writer.