// UnmarshalCert unmarshals an CertificateJSONData into a CertificateInfoData.
UnmarshalCert unmarshals an CertificateJSONData into a CertificateInfoData.
// UnmarshalCert unmarshals an CertificateJSONData into a CertificateInfoData .
func UnmarshalCert(bytes []byte) (InfoData, error) {
	if bytes == nil {
		return nil, fmt.Errorf("no data given")
	}
	data := &CertificateJSONData{}
	err := json.Unmarshal(bytes, data)
	if err != nil {
		return nil, err
	}
	return NewCertificateInfoData(data.PrivateKey, data.Certificate), nil
}
func UnmarshalCert ( bytes [ ] byte ) ( InfoData , error ) { if bytes == nil { return nil , fmt . Errorf ( " " ) } data := & CertificateJSONData { } err := json . Unmarshal ( bytes , data ) if err != nil { return nil , err } return NewCertificateInfoData ( data . PrivateKey , data . Certificate ) , nil }
UnmarshalCert unmarshals an CertificateJSONData into a CertificateInfoData.
UnmarshalCert unmarshals an CertificateJSONData into a CertificateInfoData .