pub fn cert_to_sgx_report(cert: &GenericCertificate) -> Result<Report>