code: func LoadCertificateMetadata(tx *sql.Tx, cert *certdb.Certificate) (*CertificateMetadata, error) {
  	x509Cert := cert.X509()
  	cm := &CertificateMetadata{
  		SKI:     cert.SKI,
  		AKI:     cert.AKI,
  		Serial:  x509Cert.SerialNumber,
  		Subject: common.NameToString(x509Cert.Subject),
  		Issuer:  common.NameToString(x509Cert.Issuer),
  		cert:    cert,
  	}
  
  	var err error
  	cm.Releases, err = cert.Releases(tx)
  	return cm, err
  }
docs: // LoadCertificateMetadata returns the metadata for a given certificate.