func JSONCertResponseFromParcel(caId int64, p *liftca.Parcel) *JSONCertResponse { return &JSONCertResponse{ Host: p.Host(), Self: CertUrl(caId, p.SerialNumber()), SerialNumber: strconv.FormatInt(p.SerialNumber(), 10), SubjectKeyID: p.SubjectKeyID(), AuthorityKeyID: p.AuthorityKeyID(), } }