code: func (info *HostCertificateInfo) FromCertificate(cert *x509.Certificate) *HostCertificateInfo {
  	info.Certificate = cert
  	info.subjectName = &cert.Subject
  	info.issuerName = &cert.Issuer
  
  	info.Issuer = info.fromName(info.issuerName)
  	info.NotBefore = &cert.NotBefore
  	info.NotAfter = &cert.NotAfter
  	info.Subject = info.fromName(info.subjectName)
  
  	info.ThumbprintSHA1 = soap.ThumbprintSHA1(cert)
  
  	// SHA-256 for info purposes only, API fields all use SHA-1
  	sum := sha256.Sum256(cert.Raw)
  	hex := make([]string, len(sum))
  	for i, b := range sum {
  		hex[i] = fmt.Sprintf("%02X", b)
  	}
  	info.ThumbprintSHA256 = strings.Join(hex, ":")
  
  	if info.Status == "" {
  		info.Status = string(types.HostCertificateManagerCertificateInfoCertificateStatusUnknown)
  	}
  
  	return info
  }
docs: // FromCertificate converts x509.Certificate to HostCertificateInfo