Re: importing private key globally to personal store
From: Doug Barlow (soft_pedal_at_hotmail.com)
Date: 12/22/04
- Next message: Doug Barlow: "Re: CPSignHash error 80090008"
- Previous message: Zachovich: "Re: database password and encryption"
- In reply to: mangala: "importing private key globally to personal store"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 22 Dec 2004 17:51:27 GMT
The Certificate Store doesn't store private keys, so you won't see them in
there.
Private keys are maintained by Cryptographic Service Providers (CSPs). If
your certificate has an associated private key, then the 'My' Certificate
Store will have pointers to the CSP where the private key is maintained.
Doug Barlow
The Soft Pedal Shop
CSP Design & Development Consulting
http://www.SoftPedal.net
--
"mangala" <msivaramakrishnan@inautix.com> wrote in message
news:138601c4e827$e3911040$a501280a@phx.gbl...
> Hi,
>
> I am able to import certificates & keys to root store
> globally, but not to personal ("My") store.
>
> None of the API returns error, but the private key is not
> visible in the personal store through iexplore. Please
> help.
>
> The code goes like this:
>
> rootStore = CertOpenStore(CERT_STORE_PROV_SYSTEM, 0, 0,
> CERT_SYSTEM_STORE_LOCAL_MACHINE, L"MY");
> ...
> if (PFXIsPFXBlob(&blob))
> pfxStore = PFXImportCertStore( &blob, L"",
> CRYPT_MACHINE_KEYSET );
>
> while (0 != (pctx = CertEnumCertificatesInStore(pfxStore,
> pctx)))
> CertAddCertificateContextToStore(rootStore, pctx,
> CERT_STORE_ADD_REPLACE_EXISTING, 0));
>
> Thanks,
> Mangala
- Next message: Doug Barlow: "Re: CPSignHash error 80090008"
- Previous message: Zachovich: "Re: database password and encryption"
- In reply to: mangala: "importing private key globally to personal store"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|