Re: Installing X509Certificate to the cert store programatically



I am in the same boat - is this actually impossible to do programmatically?

owen

"JohnnySparkles" <JohnnySparkles@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2D6352CD-F76B-438A-AB1F-96D2BAD1583E@xxxxxxxxxxxxxxxx
> Hi Everyone,
>
> I'm having a bit of difficulty installing an X509Certificate which I have
> created from the Active Directory "userCertificate" property of a user in
my
> Active Directory.
>
> Here's what I'm trying to do, assume the X509Certificate was created from
> the byte[] retrieved from the Active Directory.
>
> X509Certificate* xADCert = new X509Certificate(byte[]);
>
> X509CertificateStore* xStore =
> X509CertificateStore::CurrentUserStore(X509CertificateStore::MyStore);
>
> if(!xStore->Open())
> {
> //Exit
> return ;
> }
>
> xStore->Certificates->Add(xADCert);
>
> xStore->Close();
> //End
>
> Now once this has finished I go and check the certificate store and I
can't
> see my certificate added anywhere. I figured there might be some
permissions
> problems with the certificate store I was trying to write to and have
tried a
> few different stores with no luck.
>
> I've also tried installing other certificates which I know are valid as
> well as dumping the byte[] returned from AD into a file on the local disk
and
> then installing it manually into the certificate store....I also tried
> ->Insert() instead of ->Add()
>
> I'm starting to wonder if this is really possible at all? Has anyone
managed
> to do this?
>
> Thanks for your help
> Johnny


.



Relevant Pages

  • Installing X509Certificate to the cert store programatically
    ... I'm having a bit of difficulty installing an X509Certificate which I have ... created from the Active Directory "userCertificate" property of a user in my ... Now once this has finished I go and check the certificate store and I can't ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Shared Certificate Store in Active Directory
    ... the case, how do you set up a "Shared Certificate Store", ... When configuring Active Directory based IPSec policy to ...
    (microsoft.public.win2000.security)
  • RE: Installing X509Certificate to the cert store programatically
    ... "JohnnySparkles" wrote: ... > I'm having a bit of difficulty installing an X509Certificate which I have ... > Now once this has finished I go and check the certificate store and I can't ... > see my certificate added anywhere. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Shared Certificate Store in Active Directory
    ... > Configure A Shared Certificate Store in AD?" ... >> When configuring Active Directory based IPSec policy to ... > probably never tried to deploy Certificates based IPSec ...
    (microsoft.public.win2000.security)
  • RE: Not able to connect to SBS using both domain mane or IP remote
    ... > Thank you for posting in SBS newsgroup. ... you can right click the Certificate Authority ... > | After Installing the CA the wizard prompted me with a message stating ...
    (microsoft.public.windows.server.sbs)