Alternative to mem_cred_t.add_cert added, which returns the certificate.