I'm clear about your question. Do you already have a certifiate? Or do you
want to export a certificate from an existing store on Windows machine?
If you want to export a certificate from an existing store, you need to open
the store (use CertOpenStore API) and then find the certificate you want to
export (CertFindCerticateInStore API) and then you can just store the
pbCertEncoded field on CERT_CONTEXT structure in a file.
Thanks,
Vishal [MSFT]
--
This posting is provided "AS IS" with no warranties, and confers no rights
Anyone said:
From Visual C++ how can I export a certificate to x.509? I need to pass
this to a third party crypt library we're migrating away from. There are
many Cert?????? functions but no CertExport().
Thanks in advance