Re: how do I export a certificate to x.509?

From: Anyone (rick_at_server.net)
Date: 01/30/04


Date: Fri, 30 Jan 2004 15:24:10 -0600

Just this morning I realized CERT_CONTEXT contained the x.509 certificate in
the pbCertEncoded member.

Thanks.

"Vishal Agarwal[MSFT]" <vishala@online.microsoft.com> wrote in message
news:eh2tcS25DHA.1816@TK2MSFTNGP12.phx.gbl...
> 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" <rick@server.net> wrote in message
> news:bv9fem$m4o@library2.airnews.net...
> > 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
> >
> >
> >
>
>



Relevant Pages

  • Re: Active Directory Federation Services
    ... that is associated with their profile and the machine itself has a store. ... Just wanted to let you know that I got the cert problem fixed. ... the user certificate store. ... FSP was looking for certs in the local ...
    (microsoft.public.windows.server.active_directory)
  • Re: Accessing certificate store from ASP.NET web project
    ... the cert must be in the local computer/personal) store - it will then open ... Have a look at the source code to open the right cert store... ... One of the locations requires a x509 certificate in order ... different user context than my vb.net web project. ...
    (microsoft.public.dotnet.security)
  • Re: SMS 2003 SP1 Client Install Problem or Policy Retreival Problem?
    ... > Failed to find running shell process ... >> It is possible that the crypto store has somehow been corrupted. ... >>> The MP is setup and thousands of other clients have access. ... >>> Failed to find the certificate in the store, ...
    (microsoft.public.sms.admin)
  • Re: Issues with SSL on Win CE 5.0
    ... the HKCU certificate store. ... and tell the web server to use it. ... The old cert was in. ...
    (microsoft.public.windowsce.embedded)
  • Re: Issues with SSL on Win CE 5.0
    ... the HKCU certificate store. ... and tell the web server to use it. ... The old cert was in. ...
    (microsoft.public.windowsce.embedded)